コード例 #1
0
        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());
        }
コード例 #2
0
 public Task UpdateRenterer([FromBody] UpdateRenteeDTO rentee)
 {
     return(_renteeService.UpdateRentee(rentee));
 }
コード例 #3
0
ファイル: RenteeService.cs プロジェクト: gorana49/Sony4You
 public Task <Rentee> UpdateRentee(UpdateRenteeDTO rentee)
 {
     return(this._renteeRepository.UpdateRentee(rentee));
 }