public ActionResult GetReportsTab(OrderViewModel viewModel) { if (viewModel.Id == null) { return(new EmptyResult()); } return(PartialView("_Report", _orderReportService.Get((viewModel.Id.Value)))); }
public IActionResult Get(Guid orderReportId) { try { var result = _orderReportService.Get(orderReportId); return(Ok(result)); } catch (System.Exception e) { return(BadRequest(e.Message)); } }