Beispiel #1
0
        public async Task <IActionResult> Bills(BillInsertUpdateViewModel model)
        {
            if (model.Id != 0)
            {
                TempData.AddResult(await _billRepository.UpdateAsync <BillInsertUpdateViewModel>(model));
            }
            else
            {
                TempData.AddResult(await _billRepository.AddAsync <BillInsertUpdateViewModel>(model));
            }

            return(RedirectToAction("Index", new { id = model.ProjectId }));
        }