public IActionResult Edit(int id, ItemViewModel itemViewModel) { var item = Map(itemViewModel); item.ItemId = id; item.DateFrom = DateTime.Now; item.DateTo = DateTime.MaxValue; _billingContext.UpdateItem(item); return(Redirect("Index")); }