public IActionResult Get()
        {
            var activityTypeModels = _activityTypeService.GetAll()

                                     .ToApiModels();

            return(Ok(activityTypeModels));
        }
Пример #2
0
 public IEnumerable <ActivityType> GetActivityTypes()
 {
     return(activityTypeService.GetAll());
 }