public async Task <Rentee> UpdateRentee(UpdateRenteeDTO renteee) { var result = await _client.Cypher.Match(@"(rentee:Rentee)").Where((Rentee rentee) => rentee.Username == renteee.Username) .Set("rentee.Password = "******"\"" + renteee.Password + "\"").Set("rentee.PhoneNumber = " + "\"" + renteee.PhoneNumber + "\"") .Limit(1).Return <Rentee>("rentee").ResultsAsync; return(result.First()); }
public Task UpdateRenterer([FromBody] UpdateRenteeDTO rentee) { return(_renteeService.UpdateRentee(rentee)); }
public Task <Rentee> UpdateRentee(UpdateRenteeDTO rentee) { return(this._renteeRepository.UpdateRentee(rentee)); }