public IActionResult Get(int id) { var activityType = _activityTypeService.Get(id).ToApiModel(); if (activityType == null) { return(NotFound()); } return(Ok(activityType)); }
public IHttpActionResult GetActivityType(int id) { var activity = activityTypeService.Get(id); if (activity != null) { return(Ok(activity)); } else { return(NotFound()); } }