Beispiel #1
0
 public void OnGet(int id)
 {
     if (id == -1)
     {
         ViewData["action"] = "Create";
         employee           = new Employee
         {
             Id = -1
         };
     }
     else
     {
         ViewData["action"] = "Update";
         employee           = store.getEmployee(id);
     }
     projects = projStore.FindProjects("");
 }
Beispiel #2
0
 public void OnGet(int id)
 {
     employee = store.getEmployee(id);
 }