public static async Task ValidateId(string id) { try { var idExists = await AccountDAO.CheckIdExists(id); if (!idExists) { throw new CustomExceptions.InvalidOperationException("Id inexistente"); } } catch (Exception) { throw; } }
public static async Task ValidateId(string id) { try { var idExists = await AccountDAO.CheckIdExists(id); if (!idExists) { throw new CustomExceptions.InvalidOperationException("Id inexistente"); } } catch (Exception) { throw; } }