Beispiel #1
0
 public Almacen Add(Almacen entity)
 {
     try
     {
         return(repository.Add(entity));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Beispiel #2
0
 public void Add(Almacen myObject)
 {
     try
     {
         _repository.Add(myObject);
         _unitOfWork.Commit();
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
 public Almacen Post(Almacen item)
 {
     item = repository.Add(item);
     return(item);
 }