public ActionResult NewGeneralReminder() { GeneralRemindersViewModel obj = new GeneralRemindersViewModel(); obj.Groups = ReminderService.GetGroups(); return(View(obj)); }
public ActionResult NewEmployeeReminder() { //TempData["isvalid"] = true; EmployeeRemindersViewModel obj = new EmployeeRemindersViewModel(); obj.Positions = ReminderService.GetPositions(); obj.Employees = ReminderService.GetEmployees(); obj.Groups = ReminderService.GetGroups(); return(View(obj)); }
public ActionResult Update(int id) { var type = ReminderService.GetType(id); if (type == LookupService.GetLookupIdByCode((int)Lookups.employee)) { EmployeeRemindersViewModel obj = new EmployeeRemindersViewModel(); obj = ReminderService.EmployeeRemindersGetByID(id); obj.Positions = ReminderService.GetPositions(); obj.Employees = ReminderService.GetEmployees(); obj.Groups = ReminderService.GetGroups(); return(View("EmployeeReminderUpdate", obj)); } else { GeneralRemindersViewModel obj = new GeneralRemindersViewModel(); obj = ReminderService.generalRemindersGetByID(id); obj.Groups = ReminderService.GetGroups(); return(View("GeneralReminderUpdate", obj)); } }