Exemplo n.º 1
0
        public IActionResult Edit(DrugViewModelEdit drugViewModelEdit)
        {
            var drug = _mapper.Map <Drug>(drugViewModelEdit);

            _drugService.Update(drug);
            _drugService.Save();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
 public void Update(List <DrugEntity> drugs)
 {
     service.Update(drugs);
 }