Beispiel #1
0
 public ActionResult <Order_Process[]> GetOrderProcess()
 {
     try
     {
         var     result = _repository.OrderProcess();
         IMapper mapper = EDeliveryProfile.OrderProcess();
         return(mapper.Map <Order_Process[]>(result));
     }
     catch (Exception ex)
     {
         _logger.LogError($"Failed to get the order processes:{ex}");
         return(BadRequest("Failed to get the order processes"));
     }
 }