public async Task <ActionResult> Condiciones() { if (Session[Sesiones.UsuarioLogin] == null) { Session.Clear(); return(RedirectToAction("Index", "Login")); } try { var Usuariores = (BaseModel)Session[Sesiones.UsuarioLogin]; var lCondiciones = await CondicionPCL.ListarCondicions(); if (lCondiciones.Code != 200) { throw new Exception(lCondiciones.Message); } MantenimientoCondicionModel muModel = new MantenimientoCondicionModel() { Usuario = Usuariores.Usuario, lCondicions = lCondiciones.Data.lresponse }; ViewBag.Message = ObjMessage; ObjMessage = null; return(View(muModel)); } catch (Exception ex) { throw ex; } }