Пример #1
0
 public async Task <IActionResult> DeleteConfirmed(int id)
 => await CRUDHelper <AuctionItemsController, AuctionItem> .Deletor(this, _context, nameof(Index), id);
Пример #2
0
 public async Task <IActionResult> Edit(int id, [Bind("UId,Name,SetPrice,Quantity,Description")] AuctionItem auctionItem)
 => await CRUDHelper <AuctionItemsController, AuctionItem> .Editor(this, auctionItem, _context, ModelState.IsValid, nameof(Index), id);
Пример #3
0
 public async Task <IActionResult> Delete(int?id)
 => await CRUDHelper <AuctionItemsController, AuctionItem> .DeleteView(this, _context, id);
Пример #4
0
 public async Task <IActionResult> Details(int?id) => await CRUDHelper <AuctionItemsController, AuctionItem> .FindDetails(this, _context, id);