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