示例#1
0
        public List <Tarjeta> GetData()
        {
            TarjetaManager bm  = new TarjetaManager();
            var            Ret = bm.GetTarjetas();

            return(Ret);
        }
示例#2
0
 [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)));
     }
 }