public IActionResult DeleteBanner(int id)
 {
     if (ModelState.IsValid)
     {
         var model = _bannerAppService.DeleteBanner(id);
         return(Ok(model));
     }
     return(NotFound());
 }
Пример #2
0
 public JsonResult DelBanner(int id)
 {
     if (id <= 0)
     {
         return(Json(new ResponseDto {
             Code = 0, Message = "参数错误!"
         }));
     }
     return(Json(_bannerAppService.DeleteBanner(id)));
 }