Beispiel #1
0
        //POST: /api/HistoricalLogin/Login
        public async Task <JsonResult> GetReserve()
        {
            var response = new JsonResultBody
            {
                Status = System.Net.HttpStatusCode.OK
            };

            try
            {
                ProductsLogic _ProductsLogic = new ProductsLogic();
                response.Data = await _ProductsLogic.GetReservePro();
            }
            catch (Exception ex)
            {
                response.Status = System.Net.HttpStatusCode.InternalServerError;
                response.Data   = MensajesApplicacion.ErrorApplication.ToDescriptionString();
                response.Errors.Add(ex.Message);
            }

            return(Json(response));
        }