public static string getRegisterMessage(int id) { var register = RegisterController.GetByID(id); if (register != null) { return(register.Note); } else { return("false"); } }