Exemplo n.º 1
0
 public bool CreatePharmacy(Pharmacy pharmacy)
 {
     try
     {
         dbContext.Pharmacies.Add(pharmacy);
         dbContext.SaveChanges();
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 public bool CreateStockMedicine(StockMedicine stockMedicine)
 {
     try
     {
         dbContext.StockMedicines.Add(stockMedicine);
         dbContext.SaveChanges();
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
Exemplo n.º 3
0
 public bool CreateGPAUser(GPAUser user)
 {
     try
     {
         dbContext.GPAUsers.Add(user);
         dbContext.SaveChanges();
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
Exemplo n.º 4
0
 public bool CreateAppointment(Appointment appointment)
 {
     try
     {
         dbContext.Appointments.Add(appointment);
         dbContext.SaveChanges();
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }