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


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

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