public ActionResult AddJob(JobBoard jobBoard)
        {

            try
            {
                var memId = RDN.Library.Classes.Account.User.GetMemberId();
                var league = MemberCache.GetLeagueOfMember(memId);
                jobBoard.LeagueId = league.LeagueId;
                jobBoard.JobCreator = memId;

                bool execute = RDN.Library.Classes.League.JobBoard.AddNewJob(jobBoard);



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

            return Redirect(Url.Content("~/league/jobboard?u=" + SiteMessagesEnum.sac));
        }
 private static JobBoard DisplayJobList(DataModels.League.JobBoard jobLists)
 {
     JobBoard bl = new JobBoard();
     bl.JobId = jobLists.JobId;
     bl.HoursPerWeek = jobLists.HoursPerWeek;
     bl.IsClosed = jobLists.IsClosed;
     bl.IsDeleted = jobLists.IsDeleted;
     bl.JobCreator = jobLists.JobCreator.MemberId;
     bl.JobDesc = jobLists.JobDesc;
     bl.JobEnds = jobLists.JobEnds;
     bl.JobTitle = jobLists.JobTitle;
     bl.LeagueId = jobLists.League.LeagueId;
     bl.ReportsTo = jobLists.ReportsTo;
     TimeSpan ts = jobLists.JobEnds - DateTime.UtcNow;
     bl.DaysRemaining = ts.Days;
     return bl;
 }
        public ActionResult EditJob(JobBoard jobs)
        {
            try
            {
                bool execute = RDN.Library.Classes.League.JobBoard.UpdateJob(jobs);

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

        }