public async Task <HttpResponseMessage> SaveUser(object user) { var userEntity = JsonConvert.DeserializeObject <OrphanageDataModel.Persons.User>(user.ToString()); var ret = false; ret = await _userDBService.SaveUser(userEntity); if (ret) { return(Request.CreateResponse(System.Net.HttpStatusCode.OK));; } else { return(_httpResponseMessageConfiguerer.NothingChanged()); } }