public ActionResult <IEnumerable <string> > Get() { var authors = _authorServices.GetAll(); var resp = authors.Select(u => new { id = u.Id, name = u.Name }); return(Ok(resp)); }
public ActionResult <IEnumerable <string> > Get() { var authors = _authorServices.GetAll(); var resp = authors.Select(u => new { id = u.Id, name = u.Name }); return(Ok(resp)); }