public void Put(int id, Almacen almacen)
 {
     almacen.ID = id;
     if (!repository.Update(almacen))
     {
         throw new HttpResponseException(HttpStatusCode.NotFound);
     }
 }
Пример #2
0
 public Almacen Update(Almacen entity)
 {
     try
     {
         return(repository.Update(entity));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Пример #3
0
 public void Update(Almacen myObject)
 {
     try
     {
         _repository.Update(myObject);
         _unitOfWork.Commit();
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
 public void Update(AlmacenDTO entity)
 {
     try
     {
         Almacen almacen = Mapper.Map <Almacen>(entity);
         almacenRepository.Update(almacen);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }