internal string UpdateEnterpriseEngagedHR(BOEnterpriseEngagedHr model) { try { Hashtable ht = new Hashtable(); ht.Add("EnterpriseHrID", model.EngagedHrID); ht.Add("EnterpriseID", model.EnterpriseID); ht.Add("FullName", model.FullName); ht.Add("Address", model.Address); ht.Add("Gender", model.Gender); ht.Add("MobileNo", model.MobileNo); ht.Add("Designation", model.Designation); ht.Add("HighestEducationID", model.HighestEducationID); ht.Add("SpecializationID", model.SpecializationID); ht.Add("Email", model.Email); ht.Add("CountryID", model.CountryID); ht.Add("NationalID", model.NationalID); ht.Add("PassportNo", model.PassportNo); ht.Add("Website", model.Website); ht.Add("SocialSiteInfo", model.SocialSiteInfo); ht.Add("HrTypeID", model.HrTypeID); ht.Add("JobTypeID", model.JobTypeID); ht.Add("CreatedBy", model.CreatedBy); ht.Add("CreatedPC", model.CreatedPC); return(idbutility.GetDataByProc(ht, "sp_UpdateEnterpriseEngagedHR").Rows[0]["ReturnMessage"].ToString()); } catch (Exception ex) { return("Enterprise Enganged HR update failed: " + ex.Message.ToString()); } }
internal string DeleteEnterpriseEngagedHR(BOEnterpriseEngagedHr model) { try { Hashtable ht = new Hashtable(); ht.Add("EnterpriseHrID", model.EngagedHrID); ht.Add("CreatedBy", model.CreatedBy); ht.Add("CreatedPC", model.CreatedPC); return(idbutility.GetDataByProc(ht, "sp_DeleteEnterpriseEngagedHR").Rows[0]["ReturnMessage"].ToString()); } catch (Exception ex) { return("Enterprise Enganged HR update failed: " + ex.Message.ToString()); } }