//Update a WashMan public IEnumerable <WashMan> PutWashMan(int id, WashMan WashMan) { WashMan.Id = id; if (repository.Update(WashMan)) { return(repository.FindAll()); } else { return(null); } }
//Add a WashMan public WashMan PostWashMan(WashMan item) { return(repository.Add(item)); }