public async Task <IHttpActionResult> UpdateGateway(UpdateGateway UpdateGateway) { return(Ok(await _gatewayApplicationService.UpdateGateway(UpdateGateway))); }
/// <summary> /// Update the Gateway /// </summary> /// <param name="UpdateGateway">Gateway Model</param> /// <returns>No of records updated</returns> public async Task <int> UpdateGateway(UpdateGateway UpdateGateway) { string path = string.Format("gateway/UpdateGateway?NetworkID={0}", UpdateGateway.NetworkID); return(await _httpService.PutAsAsync <int>(path, UpdateGateway)); }
/// <summary> /// Update the Gateway /// </summary> /// <param name="UpdateGateway">Gateway Model</param> /// <returns>No of records updated</returns> public async Task <int> UpdateGateway(UpdateGateway UpdateGateway) { return(await _gatewayClient.UpdateGateway(UpdateGateway)); }