Ejemplo n.º 1
0
 public void Delete(int id)
 {
     try
     {
         var myObject = _repository.GetById(id);
         _repository.Delete(myObject);
         _unitOfWork.Commit();
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
 public Recurso Delete(long id)
 {
     return(recursoRepository.Delete(id));
 }