예제 #1
0
 public ActionResult Delete(int id, FormCollection collection)
 {
     try
     {
         string productId  = collection.Get("productId");
         string idAsString = collection.Get("releaseId");
         _ReleaseService.DeleteRelease(Int32.Parse(idAsString));
         return(RedirectToAction("ListByTargetDateDesc", new { productId = Int32.Parse(productId) }));
     }
     catch
     {
         return(View());
     }
 }