public IActionResult Get(int id)
        {
            var activityType = _activityTypeService.Get(id).ToApiModel();


            if (activityType == null)
            {
                return(NotFound());
            }
            return(Ok(activityType));
        }
Beispiel #2
0
        public IHttpActionResult GetActivityType(int id)
        {
            var activity = activityTypeService.Get(id);

            if (activity != null)
            {
                return(Ok(activity));
            }
            else
            {
                return(NotFound());
            }
        }