Пример #1
0
        public ActionResult <List <string> > GetRoles()
        {
            var roles = _repository.GetRoles();

            return(roles.Select(x => x.Name).ToList());
        }