/// <summary> /// Checks the activation code. /// </summary> /// <param name="code">The code.</param> /// <returns></returns> /// <exception cref="ApplicationException">CheckActivationCode</exception> public IUserActivationCode CheckActivationCode(string code) { try { using ( var dbContext = (PitalyticsEntities)dbContextFactory.GetDbContext()) { var userActivationCode = AccountQueries.CheckActivationCode(dbContext, code); return(userActivationCode); } } catch (Exception e) { throw new ApplicationException("CheckActivationCode", e); } }