public async Task <HttpResponseMessage> Put(OrphanageDataModel.RegularData.Family family) { var ret = false; ret = await _FamilyDBService.SaveFamily(family); if (ret) { return(_httpMessageConfiguerer.OK()); } else { return(_httpMessageConfiguerer.NothingChanged()); } }
public async Task <HttpResponseMessage> Put(object account) { var accountEntity = JsonConvert.DeserializeObject <OrphanageDataModel.FinancialData.Account>(account.ToString()); var ret = false; ret = await _accountDbService.SaveAccount(accountEntity); if (ret) { return(_httpMessageConfiguerer.OK()); } else { return(_httpMessageConfiguerer.NothingChanged()); } }
public async Task <HttpResponseMessage> Put(object guarantor) { var guarantorEntity = JsonConvert.DeserializeObject <OrphanageDataModel.Persons.Guarantor>(guarantor.ToString()); var ret = false; ret = await _GuarantorDBService.SaveGuarantor(guarantorEntity); if (ret) { return(_httpMessageConfiguerer.OK()); } else { return(_httpMessageConfiguerer.NothingChanged()); } }
public async Task <HttpResponseMessage> Put(object orphan) { var orp = JsonConvert.DeserializeObject <OrphanageDataModel.Persons.Orphan>(orphan.ToString()); var ret = false; ret = await _OrphanDBService.SaveOrphan(orp); if (ret) { return(_httpMessageConfigurere.OK()); } else { return(_httpMessageConfigurere.NothingChanged()); } }
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()); } }
public async Task <HttpResponseMessage> Put(OrphanageDataModel.Persons.Father father) { var ret = 0; ret = await _FatherDBService.SaveFather(father); if (ret > 0) { return(_httpMessageConfiguerer.OK()); } else { return(_httpMessageConfiguerer.NothingChanged()); } }