Esempio n. 1
0
 public IActionResult Delete(UredjajDeleteDto input)
 {
     _uredjajService.Remove(input);
     return(RedirectToAction("GetAll"));
 }
Esempio n. 2
0
        public void Remove(UredjajDeleteDto input)
        {
            var uredjaj = _uredjajRepository.Get(input.Id);

            _uredjajRepository.Delete(ObjectMapper.Map <Models.Uredjaj>(uredjaj));
        }