Example #1
0
 public IActionResult ChangeCategory(string categoryNew, string categoryOld)
 {
     if (adminLogic.ChangeCategory(categoryNew, categoryOld) > 0)
     {
         return(new JsonResult(new { message = "Successfully changed category" }));
     }
     return(new JsonResult(new { message = "Failed to change category" }));
 }