Changeset 8e74e2f for FarmatikoData/FarmatikoRepo
- Timestamp:
- 11/16/20 03:55:10 (4 years ago)
- Branches:
- master
- Children:
- db484c9
- Parents:
- 8b13eb2
- Location:
- FarmatikoData/FarmatikoRepo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoData/FarmatikoRepo/PHRepo.cs
r8b13eb2 r8e74e2f 50 50 EditedPHead.PHMedicineList = pharmacyHead.PHMedicineList; 51 51 //_context.Entry<PharmacyHead>(Phead).State = EntityState.Detached; 52 Phead = EditedPHead;52 //Phead = EditedPHead; 53 53 await _context.SaveChangesAsync(); 54 54 } -
FarmatikoData/FarmatikoRepo/Repository.cs
r8b13eb2 r8e74e2f 45 45 var Medicines = await _context.Medicines.Select(x => new Medicine 46 46 { 47 Id = x.Id, 47 48 Name = x.Name, 48 49 Strength = x.Strength, … … 268 269 return phmeds; 269 270 } 271 272 public async Task AddUser(User user) 273 { 274 await _context.Users.AddAsync(user); 275 await _context.SaveChangesAsync(); 276 } 270 277 } 271 278 }
Note:
See TracChangeset
for help on using the changeset viewer.