public ActionResult GetAllProjects() { ProjectLogic plogic = new ProjectLogic(); var projects = plogic.GetProjectStage(); return(Json(projects)); }
public ActionResult Record() { DictionaryLogic dlogic = new DictionaryLogic(); ViewBag.AttendanceTypes = new SelectList( dlogic.GetEnabledDictionaryItems(DictionaryLogic.AttendanceType), DictionaryLogic.ValueField, DictionaryLogic.TextField); ProjectLogic plogic = new ProjectLogic(); var projects = plogic.GetProjectStage(UserContext.CurrentUser.UserId); ViewBag.Projects = projects; ViewBag.ProjectSelectList = new SelectList( projects, "ProjectId", "ProjectName"); SettingsLogic slogic = new SettingsLogic(); ViewBag.WorkTimeSetting = slogic.GetEnabledWorkTimeSetting(); return(View()); }