Beispiel #1
0
 public IActionResult ClearAllCache(string key)
 {
     try {
         if (key is string)
         {
             if (key == _key)
             {
                 _BusinessLogic.ClreaAllCache();
                 return(Ok("Ok"));
             }
             else
             {
                 return(Forbid());
             }
         }
         else
         {
             return(BadRequest());
         }
     } catch {
         return(StatusCode(500));
     }
 }