public IHttpActionResult GetParentsByNameLastName([FromUri] string name, [FromUri] string lastName) { logger.Info("Getting parents by name and last name, controller"); IEnumerable <ParentDTOOutAll> parents = parentsService.GetParentsByNameLastName(name, lastName); return(Ok(parents)); }