Example #1
0
        public IActionResult Edit(int id)
        {
            var model = _mapper.Map <TargetUpdateDto>(_targetService.GetItem(id));

            if (model != null)
            {
                return(View(model));
            }
            else
            {
                _customLogger.Error("TargetController | Update Target Error : Null Object");
            }
            return(RedirectToAction("Index"));
        }