/// <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)); }
public async Task <IHttpActionResult> UpdateAccountLocation([FromBody] AccountLocation AccountLocation) { return(Ok(await _accountLocationRepository.UpdateAccountLocation(AccountLocation))); }
/// <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)); }
public async Task <IHttpActionResult> CreateAccountLocation([FromBody] AccountLocation AccountLocation) { return(Ok(await _accountLocationRepository.CreateEntityAsync(AccountLocation))); }