public async Task <HttpResponseMessage> Post(ManaoUser user) { IManaoUser createdUser = await _manaoUserBusinessLogic.Save(user); createdUser = await _manaoUserBusinessLogic.Get(createdUser._id); return(CreateResponse(HttpStatusCode.Created, createdUser)); }
public async Task <HttpResponseMessage> Put(ManaoUser user) { IManaoUser updatedUser = await _manaoUserBusinessLogic.Update(user); return(CreateResponse(HttpStatusCode.OK, updatedUser)); }