public ActionResult EditStaff(string PersonID, string ProfilePic) { EmployeeProfile profile = new EmployeeProfile(); // retrieve employee details profile.CellNumber = "+25454545454"; profile.DOB = DateTime.Today; profile.IDNumber = "IDnumber"; profile.Name = "name"; profile.PayDay = DateTime.Today; profile.Salary = "2000"; profile.StartDate = DateTime.Today.AddDays(2); profile.Surname = "surname"; profile.Username = "******"; // Getting ID Types List<SelectListItem> items = new List<SelectListItem>(); items.Add(new SelectListItem { Selected = true, Text = "hello", Value = "-1" }); items.Add(new SelectListItem { Text = "hello2", Value = "0" }); SelectList test = new SelectList(items, "Value", "Text"); ViewData["IDType"] = test; // Getting Employee Categories ViewData["EmpCategory"] = test; // Getting Employee Acess Levels ViewData["AccessLevel"] = test; // Profile Pic ViewData["PicturePic"] = ProfilePic; // Getting Countries ViewData["Countries"] = test; return View(profile); }
public ActionResult AddStaff(EmployeeProfile profile) { return View(); }