public IHttpActionResult Get(Guid? profileId) { if (profileId == null || !profileId.HasValue) return BadRequest(); var repository = new GreetingRepository(); var response = repository.GetGreeting(profileId.Value); return Ok(response); }