VehicleDelete() public method

public VehicleDelete ( int id ) : bool
id int
return bool
コード例 #1
0
        public ActionResult Delete(int?id, FormCollection collection)
        {
            var result = m.VehicleDelete(id.GetValueOrDefault());

            // "result" will be true or false
            // We probably won't do much with the result, because
            // we don't want to leak info about the delete attempt

            // In the end, we should just redirect to the list view
            return(RedirectToAction("index"));
        }