Пример #1
0
 public IActionResult Delete(int id)
 {
     if (!ModelState.IsValid)
     {
         return(new BadRequestObjectResult(ModelState));
     }
     else
     {
         _logoService.Delete(id);
         _logoService.Save();
         return(new OkObjectResult(id));
     }
 }
Пример #2
0
 public void Delete(long id)
 {
     _logoService.Delete(id);
 }