Beispiel #1
0
        /// <summary>
        /// Check vacant or Not assigned or vacant
        /// </summary>
        /// <param name="companyCode"></param>
        /// <param name="regionCode"></param>
        /// <returns></returns>
        public IEnumerable <MVCModels.User_NoticeBoard> GetNoticeboardMessagedetails(string companyCode, string regionCode, string activeDate, string noticeBoardmessage, string reportingtousercode)
        {
            _objDALUsercretion = new DAL_UsercreationWizard();
            string result = string.Empty;
            List <MVCModels.User_NoticeBoard> lstNoticeboardmessage = new List <MVCModels.User_NoticeBoard>();

            result = _objDALUsercretion.CheckVacantorNot(companyCode, regionCode);
            //if (result.ToUpper() == "ACTIVE") //Get active region Notice board message
            //{
            lstNoticeboardmessage = _objDALUsercretion.GetNoticeBoardMessageByRegion(companyCode, noticeBoardmessage).ToList();
            // }
            //else if (result.ToUpper() == "VACANT") //Get vacant region Notice board message
            //{
            //    lstNoticeboardmessage = _objDALUsercretion.GetNoticeboardmessageforvacantRegion(companyCode, regionCode, activeDate, titleName).ToList();
            //}
            //else // Get Not assigned region Details
            //{
            //    lstNoticeboardmessage = _objDALUsercretion.GetNoticeboardmessageforUnassignedRegion(companyCode, regionCode, activeDate, titleName,reportingtousercode).ToList();
            //}
            return(lstNoticeboardmessage);
        }