コード例 #1
0
        public IActionResult DeleteSuggestions()
        {
            ConfigureBreadcrumbs();

            var vms = _materialsService.GetPendingDeleteSuggestions().Select(ds =>
                                                                             new DeleteRequestViewModel
            {
                DeleteRequestId   = ds.DeleteRequestId,
                MaterialName      = ds.MaterialToDelete.Name,
                ReasonId          = ds.DeleteReasonId,
                Reason            = ds.DeleteReason.Reason,
                AdditionalComment = ds.AdditionalComment,
                DeleterName       = ds.Deleter.Username,
                RequestDate       = ds.RequestDate
            }
                                                                             ).ToList();

            return(View(vms));
        }