コード例 #1
0
        public IEnumerable <UploadModel> GetUploadsFromCategory(int n)
        {
            var test = _uploadService.GetAllFromCategory(n).Select(s =>
            {
                UploadModel retour = s.Map <UploadModel>();
                retour.FileString  = Encoding.UTF8.GetString(retour.File);
                retour.Result      = _voteService.GetResult(retour.Id);
                return(retour);
            });

            return(test);
        }