Ejemplo n.º 1
0
        public async Task <ApiMessage> GetCourseList(int page = 1, int size = 15)
        {
            var apiMsg = await ApiMessage.WrapAndTuple <Course>(async() =>
            {
                var dataAndCount = await courseManageService.GetCoursesAsync(page, size);
                return(dataAndCount.ToTuple());
            });

            return(apiMsg);
        }