public async Task <OrderStatusMaster_OrderStatusDTO> Get([FromBody] OrderStatusMaster_OrderStatusDTO OrderStatusMaster_OrderStatusDTO) { if (!ModelState.IsValid) { throw new MessageException(ModelState); } OrderStatus OrderStatus = await OrderStatusService.Get(OrderStatusMaster_OrderStatusDTO.Id); return(new OrderStatusMaster_OrderStatusDTO(OrderStatus)); }
public async Task <IActionResult> Get(int orderStatusId) { var result = await _orderStatusService.Get(orderStatusId); return(Ok(result)); }