Example #1
0
        public int Create(BillDto bill)
        {
            var newBill = BillDto.ToBill(bill);
            var context = new BillModel();

            context.Bills.Add(newBill);
            context.SaveChanges();
            return(newBill.Id);
        }