public IHttpActionResult GetById(string OrderId) { var Order = _repo.GetById(Convert.ToInt32(OrderId)); if (Order != null) { var number = Order.AirWayBillNumberNumber; Order.AirWayBillNumberNumber = number.Substring(0, 3) + "-" + number.Substring(3, 5) + "-" + number.Substring(8, 2); } return(Ok(Order)); }
public Order GetById(string OrderId) { return(_repo.GetById(OrderId)); }