コード例 #1
0
        public long UpdateInstitutionEngagedHR(BOInstitutionEngagedHr model)
        {
            try
            {
                long      result = 0;
                Hashtable ht     = new Hashtable();
                ht.Add("EngagedHrID", model.EngagedHrID);
                ht.Add("InstitutionID", model.InstitutionID);
                ht.Add("FullName", model.FullName);
                ht.Add("Address", model.Address);
                ht.Add("Gender", model.Gender);
                ht.Add("MobileNo", model.MobileNo);
                ht.Add("DesignationID", model.DesignationID);
                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);

                result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_UpdateInstitutionEngagedHr"));
                return(result);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message.ToString());
            }
        }
コード例 #2
0
        public long DeleteInstitutionEngagedHR(BOInstitutionEngagedHr model)
        {
            try
            {
                long      result = 0;
                Hashtable ht     = new Hashtable();
                ht.Add("EngagedHrID", model.EngagedHrID);
                ht.Add("CreatedBy", model.CreatedBy);
                ht.Add("CreatedPC", model.CreatedPC);

                result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_DeleteInstitutionEngagedHr"));
                return(result);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message.ToString());
            }
        }
コード例 #3
0
        internal static long DeleteInstitutionEngagedHR(BOInstitutionEngagedHr model)
        {
            DAInstitutionEngagedHR accessLayer = new DAInstitutionEngagedHR();

            return(Convert.ToInt64(accessLayer.DeleteInstitutionEngagedHR(model)));
        }