internal long DeleteInstitutionMachineries(BOInstitutionMachinerie model) { try { long result = 0; Hashtable ht = new Hashtable(); ht.Add("machineID", model.MachineID); ht.Add("createdBy", model.CreatedBy); ht.Add("createdPC", model.CreatedPC); result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_DeleteInstitutionMachineries")); return(result); } catch (Exception ex) { throw new Exception(ex.Message.ToString()); } }
internal long InsertInstitutionMachinerie(BOInstitutionMachinerie model) { try { long result = 0; Hashtable ht = new Hashtable(); ht.Add("institutionID", model.InstitutionID); ht.Add("machineName", model.MachineName); ht.Add("labTypeID", model.MachineTypeID); ht.Add("noOfMachine", model.NoOfMachine); ht.Add("remarks", model.Remarks); ht.Add("createdBy", model.CreatedBy); ht.Add("createdPC", model.CreatedPC); result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_InsertInstitutionMachineries")); return(result); } catch (Exception ex) { throw new Exception(ex.Message.ToString()); } }
internal static long DeleteInstitutionMachineries(BOInstitutionMachinerie model) { DAInstitutionMachinerie accessLayer = new DAInstitutionMachinerie(); return(Convert.ToInt64(accessLayer.DeleteInstitutionMachineries(model))); }
internal static long InsertInstitutionMachinerie(BOInstitutionMachinerie model) { DAInstitutionMachinerie accessLayer = new DAInstitutionMachinerie(); return(accessLayer.InsertInstitutionMachinerie(model)); }