// PUT: api/Cargos/5 public IEnumerable <IModel> Put(Cargo cargo) { if (repo.Update(cargo)) { return(repo.GetAll()); } return(null); }