Exemplo n.º 1
0
 public IHttpActionResult GetRelatedActivities([FromUri] Guid activityId)
 {
     try
     {
         //if (activityId.IsNullOrEmpty())
         //    return BadRequest("Invalid activity id received.");
         return(Ok(_activitiesService.GetRelatedActivities(activityId)));
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }