Пример #1
0
        public DateTime GetServerDate()
        {
            try
            {
                _dbContext.SqlConnection.Open();

                return(_iUtilityRepository.GetServerDate());
            }
            catch (Exception exception)
            {
                throw new Exception(exception.Message);
            }
            finally
            {
                _dbContext.SqlConnection.Close();
            }
        }