Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MVC Unit Testing a controller
- public CustomerController:Controller
- {
- [Authorize]
- public ActionResult GetCustomer(int id)
- {
- var model=db.Customers.where(c=>c.id==id);
- return View(model);
- }
- }
Add Comment
Please, Sign In to add comment