thực tiễn tốt nhất để gửi biểu mẫu trong asp.net mvc là gì. Tôi đã làm mã như thế này dưới đây nhưng tôi có một cảm giác có một cách tốt hơn. đề xuất?Bộ sưu tập hình thức asp.net mvc khi gửi
[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);