示例#1
0
 public bool UpdatePharmacy(Pharmacy pharmacy)
 {
     try
     {
         dbContext.Update <Pharmacy>(pharmacy);
         dbContext.SaveChanges();
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
示例#2
0
 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);
     }
 }
示例#5
0
 public bool UpdateMedicine(Medicine medicine)
 {
     try
     {
         dbContext.Update <Medicine>(medicine);
         dbContext.SaveChanges();
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }