VehicleDelete() публичный Метод

public VehicleDelete ( int id ) : bool
id int
Результат bool
        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"));
        }