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

            return(NoContent());
        }