public IActionResult Edit(DrugViewModelEdit drugViewModelEdit) { var drug = _mapper.Map <Drug>(drugViewModelEdit); _drugService.Update(drug); _drugService.Save(); return(RedirectToAction("Index")); }
public void Update(List <DrugEntity> drugs) { service.Update(drugs); }