public IHttpActionResult GetParentByUserName(string username) { logger.Info("Getting parent by parent username, controller"); ParentDTOHelper parent = parentsService.GetParentByUserName(username); return(Ok(parent)); }