/// <summary> /// Change status of a specific service /// </summary> /// <param name="serviceId">Service ID</param> /// <returns>1: Successful. 0: Failed</returns> public async Task <int> ChangeServiceStatusAsync(int serviceId) { int result = 0; // Change service status using (LinqDBDataContext data = new LinqDBDataContext()) { result = await Task.Run(() => data.SP_CHANGE_SERVICE_STATUS(serviceId)); } return(result); }