public async Task <IActionResult> Put([FromBody] BillViewModel bill)
        {
            if (ModelState.IsValid)
            {
                var thiscBill = Mapper.Map <CustomBill>(bill);
                _repository.UpdateCustomBill(thiscBill);

                if (await _repository.SaveChangesAsync())
                {
                    return(Created($"api/custombills/{thiscBill.Id}", Mapper.Map <CustomBillViewModel>(thiscBill)));
                }
            }
            return(BadRequest("Failed to save the bill"));
        }