Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I have this code in my Home controller index action and in the index view I have put an image and linked it to some where like Employee Page.
What I need is simple if I click on the image then my column of DB CheckInTime and CheckOutTime filled by current time as written in the code.

What should I do next?

Thank you.
C#
public ActionResult Index()
            {
                  ViewBag.Message = "Welcome to ZDAAS LLC";
                  EmployeeContext empDB = new EmployeeContext();
                  Employee emp = new Employee();
                  emp.CheckInTime = System.DateTime.Now;
                  emp.CheckOutTime = System.DateTime.Now;
                  
                  return View();
            }
Posted
Updated 26-Feb-12 3:05am
v2
Comments
André Kraak 26-Feb-12 9:06am    
Edited question:
Added pre tags
"Treat my content as plain text..." option disabled.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900