public int Create(BillDto bill) { var newBill = BillDto.ToBill(bill); var context = new BillModel(); context.Bills.Add(newBill); context.SaveChanges(); return(newBill.Id); }