Exemplo n.º 1
0
 public string deleteUser(string pID)
 {
     if (pID == ((string[])Session["userInfo"])[0])
     {
         return("You cannot delete yourself!");
     }
     if (_adminBLL.deleteUser(pID))
     {
         return("User deleted succesfully!");
     }
     else
     {
         return("An error occurred");
     }
 }
Exemplo n.º 2
0
        public string deleteUser(int id)
        {
            var jsonSerializer = new JavaScriptSerializer();

            return(jsonSerializer.Serialize(_adminBLL.deleteUser(id)));
        }