Example #1
0
        /// <summary>
        /// Fetches the domain user representing the current application user.
        /// </summary>
        /// <returns></returns>
        public Task <User> GetCurrentUserAsync()
        {
            string userId = context.GetCurrentUser();

            return(GetUserAsync(userId));
        }
Example #2
0
        public Task Submit(DataReturnVersion dataReturnVersion)
        {
            dataReturnVersion.Submit(context.GetCurrentUser());

            return(context.SaveChangesAsync());
        }