-
-
Save ErShubhamKGupta/f8c09e97033c2f621a9e59bd6829b4e2 to your computer and use it in GitHub Desktop.
EmployeeController.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GET: Employee/AddOrEdit | |
public IActionResult AddOrEdit(int Id=0) | |
{ | |
if(Id==0) | |
return View(new Employee()); | |
else | |
return View(_context.Employees.Find(Id)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment