Пример #1
0
        public ActionResult GetReportsTab(OrderViewModel viewModel)
        {
            if (viewModel.Id == null)
            {
                return(new EmptyResult());
            }

            return(PartialView("_Report", _orderReportService.Get((viewModel.Id.Value))));
        }
Пример #2
0
 public IActionResult Get(Guid orderReportId)
 {
     try
     {
         var result = _orderReportService.Get(orderReportId);
         return(Ok(result));
     }
     catch (System.Exception e)
     {
         return(BadRequest(e.Message));
     }
 }