public static Medicine GetMedicineByID(int id) { Medicine medicine = new Medicine(); SqlMedicineProvider sqlMedicineProvider = new SqlMedicineProvider(); medicine = sqlMedicineProvider.GetMedicineByID(id); return medicine; }
public static List<Medicine> GetAllMedicines() { List<Medicine> medicines = new List<Medicine>(); SqlMedicineProvider sqlMedicineProvider = new SqlMedicineProvider(); medicines = sqlMedicineProvider.GetAllMedicines(); return medicines; }
public static Medicine GetMedicineByID(int id) { Medicine medicine = new Medicine(); SqlMedicineProvider sqlMedicineProvider = new SqlMedicineProvider(); medicine = sqlMedicineProvider.GetMedicineByID(id); return(medicine); }
public static List <Medicine> GetAllMedicines() { List <Medicine> medicines = new List <Medicine>(); SqlMedicineProvider sqlMedicineProvider = new SqlMedicineProvider(); medicines = sqlMedicineProvider.GetAllMedicines(); return(medicines); }
public static bool DeleteMedicine(int medicineID) { SqlMedicineProvider sqlMedicineProvider = new SqlMedicineProvider(); return(sqlMedicineProvider.DeleteMedicine(medicineID)); }
public static bool UpdateMedicine(Medicine medicine) { SqlMedicineProvider sqlMedicineProvider = new SqlMedicineProvider(); return(sqlMedicineProvider.UpdateMedicine(medicine)); }
public static int InsertMedicine(Medicine medicine) { SqlMedicineProvider sqlMedicineProvider = new SqlMedicineProvider(); return(sqlMedicineProvider.InsertMedicine(medicine)); }
public static bool UpdateMedicine(Medicine medicine) { SqlMedicineProvider sqlMedicineProvider = new SqlMedicineProvider(); return sqlMedicineProvider.UpdateMedicine(medicine); }
public static int InsertMedicine(Medicine medicine) { SqlMedicineProvider sqlMedicineProvider = new SqlMedicineProvider(); return sqlMedicineProvider.InsertMedicine(medicine); }
public static bool DeleteMedicine(int medicineID) { SqlMedicineProvider sqlMedicineProvider = new SqlMedicineProvider(); return sqlMedicineProvider.DeleteMedicine(medicineID); }