Exemplo n.º 1
0
        public ActionResult GetSector(string Distcode, string Project, string StateCode, string CenterType = "")
        {
            var _loginBuss = new LoginBusiness();
            var Data       = _loginBuss.GetSector(Distcode.Trim(), Project.Trim(), StateCode.Trim(), CenterType);

            return(Json(Data.AsEnumerable().Select(m => new SelectListItem()
            {
                Text = m.SectorName, Value = m.SectorCode.ToString()
            }), JsonRequestBehavior.AllowGet));
        }