Exemplo n.º 1
0
        /// <summary>
        /// Gets the clients.
        /// </summary>
        /// <param name="adviserId">The adviser identifier.</param>
        /// <returns>
        /// List of ClientMessageExtended
        /// </returns>
        public async Task <List <ClientMessageExtended> > GetClients(Guid adviserId)
        {
            var result = await _adviserService.GetAdviser(adviserId);

            if (result == null)
            {
                return(null);
            }

            return(result.Clients);
        }
Exemplo n.º 2
0
        public async Task <IActionResult> GetAdviser(
            [FromRoute] string adviserId)
        {
            var response = await _adviserService.GetAdviser(new Guid(adviserId));

            if (response == null)
            {
                return(BadRequest(response));
            }

            return(Ok(response));
        }