コード例 #1
0
 /// <summary>
 /// Update a AccountLocation record
 /// </summary>
 /// <param name="AccountLocation">AccountLocation model</param>
 /// <returns>No of records Update</returns>
 public async Task <int> UpdateAccountLocation(AccountLocation AccountLocation)
 {
     return(await _httpService.PutAsAsync <int>(AccountLocationEndPoint, AccountLocation));
 }
コード例 #2
0
 public async Task <IHttpActionResult> UpdateAccountLocation([FromBody] AccountLocation AccountLocation)
 {
     return(Ok(await _accountLocationRepository.UpdateAccountLocation(AccountLocation)));
 }
コード例 #3
0
 /// <summary>
 /// Create a accountLocation record
 /// </summary>
 /// <param name="AccountLocation">AccountLocation model</param>
 /// <returns>Id of the newly created AccountLocation</returns>
 public async Task <long> CreateAccountLocation(AccountLocation AccountLocation)
 {
     return(await _httpService.PostAsAsync <long>(AccountLocationEndPoint, AccountLocation));
 }
コード例 #4
0
 public async Task <IHttpActionResult> CreateAccountLocation([FromBody] AccountLocation AccountLocation)
 {
     return(Ok(await _accountLocationRepository.CreateEntityAsync(AccountLocation)));
 }