Esempio n. 1
0
        public async Task <ActionResult> Details(StatusChangeViewModel viewModel)
        {
            var report = new Report();

            _modelFactory.Modify(report, viewModel);
            await _reportProxy.PatchAsync(viewModel.Id, report);

            return(RedirectToAction("Details", new { viewModel.Id }));
        }
Esempio n. 2
0
        public async Task<ActionResult> Details(StatusChangeViewModel viewModel)
        {
            var report = new Report();
            _modelFactory.Modify(report, viewModel);
            await _reportProxy.PatchAsync(viewModel.Id, report);

            return RedirectToAction("Details", new { viewModel.Id });
        }
Esempio n. 3
0
 public void Modify(Report report, StatusChangeViewModel viewModel)
 {
     report.Status    = viewModel.Status;
     report.IsVisible = viewModel.IsVisible;
 }
Esempio n. 4
0
 public void Modify(Report report, StatusChangeViewModel viewModel)
 {
     report.Status = viewModel.Status;
     report.IsVisible = viewModel.IsVisible;
 }