예제 #1
0
 public void DeleteComment(string commentId)
 {
     ServiceSupport.AuthorizeAndExecute(() =>
     {
         if (HttpContext.Current.IsSuperAdminLoggedIn())
         {
             PhotoRepository.DeleteComment(commentId);
         }
         else
         {
             PhotoRepository.DeleteComment(commentId, HttpContext.Current.User.Identity.Name);
         }
     });
 }