Exemple #1
0
        // GET: WorkTitleDetail/Create
        public ActionResult Create()
        {
            var workTitles = _workTitleService.GetWorkTitles();

            ViewBag.WorkTitles = new SelectList(workTitles, "Id", "Name");
            return(View());
        }
        // GET: SalaryLevel/Create
        public ActionResult Create()
        {
            var model      = new SalaryLevelViewModel();
            var workTitles = _workTitleService.GetWorkTitles();

            ViewBag.WorkTitles  = new SelectList(workTitles, "Id", "Name");
            model.EffectiveDate = DateTime.Now.ToLocalTime();
            return(View(model));
        }
        // GET: WorkTitle
        public ActionResult Index()
        {
            var list = service.GetWorkTitles();

            return(View(list));
        }