public ActionResult AddNewEmployee() { ManiEmployeesViewModel model = new ManiEmployeesViewModel() { Employee = new Employee(), Titles = _titleManager.GetTitles(), ButtonName = "Add Employee", }; return(View(model)); }
private void ListMyTitles() { dataGridTitle.DataSource = _titleManager.GetTitles().Select(p => new TitleDto() { TitleID = p.TitleID, TitleName = p.TitleName, Description = p.Description }).ToList(); }