public async Task <ActionResult <TableBillDto> > Post(TableBillDto dto)
        {
            var entity = new TableBill();

            mapper.Map(dto, entity);
            dataContext.Add(entity);
            await dataContext.SaveChangesAsync();

            dto.Id = entity.Id;
            return(dto);
        }
        public async Task <ActionResult <TableBillDto> > Put(TableBillDto dto)
        {
            var entity = await dataContext.Set <TableBill>().FirstOrDefaultAsync(x => x.Id == dto.Id);

            if (entity == null)
            {
                return(NotFound());
            }
            mapper.Map(dto, entity);
            await dataContext.SaveChangesAsync();

            return(dto);
        }