Esempio n. 1
0
        /// <summary>
        /// 删除所有车辆信息
        /// </summary>
        /// <returns></returns>
        public ActionResult DeleteAllVehicle()
        {
            bool result = VehicleService.DeleteAll();

            if (result == false)
            {
                Response.Write("<script>alert('删除失败,请联系开发者(QQ:2788636917)')</script>");
            }
            else
            {
                Response.Write("<script>alert('删除成功!')</script>");
            }
            return(View("MainPage"));
        }