Ejemplo n.º 1
0
        public async Task <IHttpActionResult> SearchProjectFolder([FromUri] Pagination pagination, [FromUri] Sorting sorting = null, string search = null)
        {
            pagination.Validate();
            SearchFieldValidator.Validate(search);

            var result =
                await
                _instanceRepository.GetProjectsAndFolders(Session.UserId,
                                                          new TabularData()
            {
                Pagination = pagination, Sorting = sorting, Search = search
            },
                                                          SortingHelper.SortProjectFolders);

            return(Ok(result));
        }