public IHttpActionResult GetByUsername(string username) { if (parentsService.ExistsUsername(username) == false) { return(NotFound()); } return(Ok(parentsService.GetByUsername(username))); }