using System; using System.Collections.Generic; using System.Linq; using System.Web; using Neo.Afx.ComponentModel; using Neo.Afx.Services.Notifications.Entities; using Neo.Afx.Services.Performance.Entities; namespace Neo.Afx.Services.Notifications { /// /// Notifications database context container /// public class PerformanceDatabase : Database { /// /// Initializes a new instance of the class. /// public PerformanceDatabase() : base(new PerformanceContext()) { } #region UserName /// /// Gets the name of the user. /// /// /// The name of the user. /// public string UserName { get { if (HttpContext.Current.User != null && HttpContext.Current.User.Identity.IsAuthenticated) { return HttpContext.Current.User.Identity.Name.ToLower(); } return ""; } } #endregion #region GetPerformanceStatistics public List GetPerformanceStatistics(long userID, long roleID, string groupBy, DateTime dateFrom, DateTime dateTo) { return Context.Pr_PerformanceStatisticsGet(userID, roleID, groupBy, dateFrom, dateTo).ToList(); } #endregion } }