示例#1
0
        public ActionResult <ApiResult <List <People> > > AllValidatePeopleList()
        {
            ApiResult <List <People> > result = new ApiResult <List <People> >(false);

            result.Data    = _peopleBlock.GetAllValidatePeople();
            result.Success = true;

            return(Ok(result));
        }
示例#2
0
        public List <string> AllSayHello()
        {
            var           peoples = _peopleBlock.GetAllValidatePeople();
            List <string> data    = new List <string>();

            foreach (var item in peoples)
            {
                data.Add(item.FullName + " say Hello!");
            }
            return(data);
        }