public List <Tarjeta> GetData() { TarjetaManager bm = new TarjetaManager(); var Ret = bm.GetTarjetas(); return(Ret); }
[AllowAnonymous] // Usado por el servico public IHttpActionResult GetAllCards() { try { var mng = new TarjetaManager(); _apiResponse = new ApiResponse(); _apiResponse.Data = mng.GetTarjetas(); _apiResponse.Message = "Execution Success"; return(Ok(_apiResponse)); } catch (BusinessException bex) { return(InternalServerError(new Exception(bex.ExceptionId + "-" + bex.AppMessage.Message))); } }