Whats the use of string Command parameter in create method

Posted by Swappy_Gaj under ASP.NET MVC on 1/27/2015 | Points: 10 | Views : 1454 | Status : [Member] | Replies : 0
Whats the use of string Command parameter in Create method;

//Create(User user, string Command)

public ActionResult Create(User user, string Command)
{
if (ModelState.IsValid)
{
db.Users.Add(user);
db.SaveChanges();
TempData["Msg"] = "Data has been saved succeessfully";
return RedirectToAction("Index");
}


ALSO THIS:
lnkCreate is ID of Create New Link:
Use of url = $(this).attr('href');
$("#lnkCreate").live("click", function (e) {
//e.preventDefault(); //use this or return false
url = $(this).attr('href');
$("#dialog-edit").dialog('open');

return false;
});




Responses

(No response found.)

Login to post response