public bool UpdatePharmacy(Pharmacy pharmacy) { try { dbContext.Update <Pharmacy>(pharmacy); dbContext.SaveChanges(); return(true); } catch (Exception ex) { return(false); } }
public bool UpdateGPAUser(GPAUser user) { try { dbContext.Update <GPAUser>(user); dbContext.SaveChanges(); return(true); } catch (Exception ex) { return(false); } }
public bool UpdateAppointment(Appointment appointment) { try { dbContext.Update <Appointment>(appointment); dbContext.SaveChanges(); return(true); } catch (Exception ex) { return(false); } }
public bool UpdateStockMedicine(StockMedicine stockMedicine) { try { dbContext.Update <StockMedicine>(stockMedicine); dbContext.SaveChanges(); return(true); } catch (Exception ex) { return(false); } }
public bool UpdateMedicine(Medicine medicine) { try { dbContext.Update <Medicine>(medicine); dbContext.SaveChanges(); return(true); } catch (Exception ex) { return(false); } }