Exemplo n.º 1
0
        public async Task <ServiceStatus> GetServiceStatus()
        {
            using (var query = await Query("[dbo].[GetServiceStatus]")
                               .CommandType(CommandType.StoredProcedure)
                               .ExecuteAsync())
            {
                if (await query.ReadAsync())
                {
                    return(ServiceStatus.FromResult(query));
                }

                return(null);
            }
        }