public void Delete(PersonalDTO entity) { try { Personal personal = Mapper.Map <Personal>(entity); _personalRepository.Delete(personal); } catch (Exception ex) { throw ex; } }
public ActionResult DeletePersonal(int id) { _repository.Delete(id); return(NoContent()); }