Example #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);
     }
 }
Example #2
0
 public void Delete(Guid entityId)
 {
     repository.Delete(entityId);
 }
 public IActionResult Delete(Guid ProyectoId)
 {
     repository.Delete(ProyectoId);
     return(Ok(true));
 }
 public bool Delete(int?id)
 {
     return(proyectoRepository.Delete(id));
 }