示例#1
0
        public ActionResult DownloadedNotes(string note, string buyer, string seller, string search)
        {
            if (note == "")
            {
                note = null;
            }
            if (buyer == "" || buyer == null)
            {
                buyer = "0";
            }
            if (seller == "" || seller == null)
            {
                seller = "0";
            }
            if (search == "")
            {
                search = null;
            }
            int buyerid  = Convert.ToInt32(buyer);
            int sellerid = Convert.ToInt32(seller);
            AdminNotesViewModel model = new AdminNotesViewModel
            {
                DownloadedNotes = _context.GetAdminDownloadedNotes(note, buyer, seller, search),
                Sellers         = _context.GetAllDownloadedSeller(),
                Buyers          = _context.GetAllBuyers(),
                NotesTitles     = _context.GetAllNotesName()
            };

            return(View(model));
        }