public IHttpActionResult Get(Guid? profileId)
 {
     if (profileId == null || !profileId.HasValue)
         return BadRequest();
     var repository = new ProfileRepository();
     var response = repository.GetProfile(profileId.Value);
     return Ok(response);
 }
 public IHttpActionResult Get(string reference)
 {
     if (string.IsNullOrWhiteSpace(reference))
         return BadRequest();
     var repository = new ProfileRepository();
     var response = repository.FindProfileId(reference);
     return Ok(new ProfileReference { ProfileId = response, ReferenceValue = reference });
 }
 public IHttpActionResult Get(Guid? profileId)
 {
     if (profileId == null || !profileId.HasValue)
         return BadRequest(); 
     var repository = new ProfileRepository();
     var response = repository.GetProfile(profileId.Value);
     return Ok(new Copyright { CompanyName = response.Name, CopyrightStartYear = 2015, CopyrightEndYear = DateTime.Now.Year });
 }