/// <summary> /// Adiciona um utente à lista de utentes /// </summary> /// <param name="u">Utente</param> /// <returns>a função AddUtente (adiciona o utente à lista)</returns> public static bool InserirUtente(Utente u) { try { return(Utentes.AddUtente(u)); } catch (InsereException e) { throw e; } }
/// <summary> /// Adds a doctor to the system list after validating it /// </summary> /// <param name="med"></param> /// <returns></returns> public int AddUtente(Utente u) { ValidateUtente(u); Utentes.AddUtente(u); return(u.nhsNumber); }