public void Put(int id, Almacen almacen) { almacen.ID = id; if (!repository.Update(almacen)) { throw new HttpResponseException(HttpStatusCode.NotFound); } }
public Almacen Update(Almacen entity) { try { return(repository.Update(entity)); } catch (Exception ex) { throw new Exception(ex.Message); } }
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; } }