Пример #1
0
        public IHttpActionResult Get()
        {
            var Orders = _repo.Get();

            foreach (var item in Orders)
            {
                var number = item.AirWayBillNumberNumber;
                item.AirWayBillNumberNumber = number.Substring(0, 3) + "-" + number.Substring(3, 5) + "-" + number.Substring(8, 2);
            }
            return(Ok(Orders));
        }
Пример #2
0
 public List <Order> Get()
 {
     return(_repo.Get());
 }