private static TaskListDA DisplayTaskList(DataModels.League.Task.TaskList oTaskList)
        {
            TaskListDA bl = new TaskListDA();
            bl.AssignedTo = oTaskList.AssignedTo;
            bl.EndDate = oTaskList.EndDate;
            bl.ListAddByMember = oTaskList.ListAddByMember.MemberId;
            bl.ListId = oTaskList.ListId;
            bl.ListName = oTaskList.ListName;
            bl.TaskListForLeague = oTaskList.TaskListForLeague.LeagueId;

            return bl;
        }
        public ActionResult TaskList(TaskListDA taskList)
        {

            try
            {
                var memId = RDN.Library.Classes.Account.User.GetMemberId();
                var league = MemberCache.GetLeagueOfMember(memId);
                taskList.TaskListForLeague = league.LeagueId;
                taskList.ListAddByMember = memId;

                bool execute = RDN.Library.Classes.League.TaskList.TaskListDA.Add_New_List(taskList);

            }
            catch (Exception exception)
            {
                ErrorDatabaseManager.AddException(exception, exception.GetType());
            }

            return Redirect(Url.Content("~/tasks/league/list?u=" + SiteMessagesEnum.sac));
        }
        public ActionResult UpdateTaskList(TaskListDA oTaskList)
        {
            try
            {
                var memId = RDN.Library.Classes.Account.User.GetMemberId();
                oTaskList.ListAddByMember = (Guid)memId;
                bool execute = RDN.Library.Classes.League.TaskList.TaskListDA.UpdateTaskListInfo(oTaskList);

                return Redirect(Url.Content("~/tasks/league/list?u=" + SiteMessagesEnum.s));
            }
            catch (Exception exception)
            {
                ErrorDatabaseManager.AddException(exception, exception.GetType());
            }
            return Redirect(Url.Content("~/?u=" + SiteMessagesEnum.sww));

        }