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