在asp.net mvc中提交表單的最佳做法是什麼?我一直在做這樣的代碼,但我有一種感覺,有一個更好的方法。建議?提交時提交asp.net mvc表單集合
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult AddNewLink(FormCollection collection_)
{
string url = collection_["url"].ToString();
string description = collection_["description"].ToString();
string tagsString = collection_["tags"].ToString();
string[] tags = tagsString.Replace(" ","").Split(',');
linkRepository.AddLink(url, description, tags);