public IActionResult Delete(UredjajDeleteDto input) { _uredjajService.Remove(input); return(RedirectToAction("GetAll")); }
public void Remove(UredjajDeleteDto input) { var uredjaj = _uredjajRepository.Get(input.Id); _uredjajRepository.Delete(ObjectMapper.Map <Models.Uredjaj>(uredjaj)); }