internal long DeleteInstitutionLabMapping(BOInstitutionLabMapping model) { try { long result = 0; Hashtable ht = new Hashtable(); ht.Add("id", model.ID); ht.Add("CreatedBy", model.CreatedBy); ht.Add("CreatedPC", model.CreatedPC); result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_DeleteInstitutionLabMapping")); return(result); } catch (Exception ex) { throw new Exception(ex.Message.ToString()); } }
public long InsertInstitutionLabMapping(BOInstitutionLabMapping model) { try { long result = 0; Hashtable ht = new Hashtable(); ht.Add("institutionID", model.InstitutionID); ht.Add("machineTypeID", model.MachineTypeID); ht.Add("numberOfLab", model.NumberOfLab); ht.Add("totalExpense", model.TotalExpense); ht.Add("remarks", model.Remarks); ht.Add("createdBy", model.CreatedBy); ht.Add("CreatedPC", model.CreatedPC); result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_InsertInstitutionLabMapping")); return(result); } catch (Exception ex) { throw new Exception(ex.Message.ToString()); } }
internal static long DeleteInstitutionLabMapping(BOInstitutionLabMapping model) { DAInstitutionLabMapping accessLayer = new DAInstitutionLabMapping(); return(Convert.ToInt64(accessLayer.DeleteInstitutionLabMapping(model))); }