を提出します。私は以下のようなコードを行ってきましたが、もっと良い方法があると感じています。提案?asp.net MVC Formsコレクションの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);