Beispiel #1
0
        public IActionResult GetAlias(int id)
        {
            var result = _aliasRepo.Get(id);

            if (result.Success)
            {
                return(Ok(result.Data));
            }
            else
            {
                return(BadRequest(result.Messages));
            }
        }
Beispiel #2
0
        public IActionResult GetAlias(int id)
        {
            var response = aliasRepo.Get(id);

            if (response.Success)
            {
                return(Ok(new {
                    response.Data.AliasId,
                    response.Data.AliasName,
                    response.Data.InterpolId,
                    response.Data.Persona,
                    response.Data.AgentId
                }));
            }
            else
            {
                return(BadRequest(response.Message));
            }
        }
Beispiel #3
0
        public ActionResult <IEnumerable <AliasListView> > GetAliases()
        {
            var aliases = _repository.Get();

            return(Ok(aliases));
        }