コード例 #1
0
        public async Task <ActionResult> BrowseFile(int Id)
        {
            var Dto = await expenseAccountFileRepo.GetDtos(Id);

            if (Dto.UpLoader != ViewHelp.GetUserName() && !ViewHelp.IsAdmin())
            {
                return(RedirectToAction("noright", "error"));
            }
            var Vm = Mapper.Map <ExpenseAccountFileVM>(Dto);

            return(View(Vm));
        }