/// <summary> /// Method to delete user from database /// </summary> /// /// <param name="user"> /// User to be deleted /// </param> /// /// <returns></returns> public bool DeleteUser(User user) { bool idFound = CheckIDExistence(user.SystemID); if (!idFound) { user.ErrorMessage = "System ID not found"; return(false); } else { DatabaseQuery dq = new DatabaseQuery(); dq.DeleteUser(user.SystemID); return(true); } }