Example #1
0
        public IActionResult Create(ItemViewModel itemViewModel)
        {
            var item = Map(itemViewModel);

            item.DateFrom = DateTime.Now;
            item.DateTo   = DateTime.MaxValue;
            _billingContext.CreateItem(item);
            return(Redirect("Index"));
        }