public IHttpActionResult Get() { apiResp = new ApiResponse(); var mng = new VistaManager(); apiResp.Data = mng.RetrieveAll(); return(Ok(apiResp)); }
//[ClaimsAuthorization(ClaimType = "action", ClaimValue = "vista-obtenerVistas")] public IHttpActionResult ObtenerVistas() { try { var manager = new VistaManager(); apiResp.Data = manager.RetrieveAll(); apiResp.Message = "Vistas en el sistema"; return(Ok(apiResp)); } catch (BusinessException bex) { return(InternalServerError(new Exception(bex.ExceptionId + "-" + bex.AppMessage.Message))); } }