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)); }
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); }