public ActionResult Login(string Correo, string Contrasenia, string RUC) { try { var instLocal = new ReportesService.ReportesServiceClient().Autenticacion(RUC, Correo, Contrasenia); if (instLocal != null) { System.Web.HttpContext.Current.Session["SessionIsAuthenticated"] = true; System.Web.HttpContext.Current.Session["SessionUsuario"] = instLocal; return(Json("Success", JsonRequestBehavior.AllowGet)); } else { return(Json("Datos incorrectos", JsonRequestBehavior.AllowGet)); } } catch (FaultException <RepetidoException> error) { //return Json("Error", JsonRequestBehavior.AllowGet); throw new Exception(error.Detail.Descripcion); } }
public ActionResult RankingDocentesFilterValueDataList(DateTime FechaInicio, DateTime FechaFina) { var Result = new ReportesService.ReportesServiceClient().RankingDocentes(FechaInicio, FechaFina).ToList(); return(PartialView("RankingDocentesPartial", Result)); }