Beispiel #1
0
        /// <summary>
        /// Change status of a specific facility
        /// </summary>
        /// <param name="facilityId">Facility ID</param>
        /// <returns>1: Successful. 0: Failed</returns>
        public async Task <int> ChangeFacilityStatusAsync(int facilityId)
        {
            int result = 0;

            // Change service status
            using (LinqDBDataContext data = new LinqDBDataContext())
            {
                result = await Task.Run(() =>
                                        data.SP_CHANGE_FACILITY_STATUS(facilityId));
            }

            return(result);
        }