Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DDW2FileController : Controller
- {
- ...
- public ActionResult Delete(string fileName)
- {
- return View(repository.GetFile(fileName));
- }
- [AcceptVerbs(HttpVerbs.Post)]
- public ActionResult Delete(DDW2File ddw2file)
- {
- repository.Delete(file);
- return RedirectToAction("Index");
- }
- }
- ...
- public class DDW2File
- {
- public string Name { get; set; }
- public long Length { get; set; }
- }
- <%=Html.TextBox("ddw2file.Name")%>
- <%=Html.TextBox("ddw2file.Length")%>
Add Comment
Please, Sign In to add comment