Пример #1
0
        public void Save(Orders model)
        {
            model.tOrder = new Order();

            try
            {
                model.tOrder.Id         = model.countOrder;
                model.tOrder.Number     = model.oNumber;
                model.tOrder.Date       = model.oDate;
                model.tOrder.ProviderId = model.oProviderId;
                dbContext.Repository <Order>().Create(model.tOrder);
                dbContext.Save();
            }
            catch (IOException e)
            {
            }
        }