public JsonResult mesXOrigem() { if (this.Logado != ((char)Enums.Logado.Sim).ToString()) { return(this.Json(new { redirectUrl = Url.Action("Login", "Login"), Logado = true }, JsonRequestBehavior.AllowGet)); } try { List <MesXOrigem> mesOrigem = new List <MesXOrigem>(); N0203REGBusiness N0203REGBusiness = new N0203REGBusiness(); mesOrigem = N0203REGBusiness.MesXOrigem(); return(this.Json(new { mesOrigem }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { this.Session["ExceptionErro"] = ex; return(this.Json(new { redirectUrl = Url.Action("ErroException", "Erro"), ErroExcecao = true }, JsonRequestBehavior.AllowGet)); } }