none
Yazılım ve Virüse karşı Sosyal Mesafe RRS feed

  • Genel Tartışma

  • [Authorize]
    public class ProductsController : ApiController
    {
       private readonly ApplicationDbContext _context;
       
       public ProductsController(ApplicationDbContext context)
       {
       _context = context;
       }
       
       [HttpGet]
       public async Task<ActionResult<IEnumerable<Product>>> GetProducts => await _context.Products.ToListAsync();
    }

    [Authorize]
    
    
    
    public class ProductsController : ApiController
    
    
    
    {
    
    
    
       private readonly ApplicationDbContext _context;
    
    
    
       
       public ProductsController(ApplicationDbContext context)
    
    
    
       {
    
    
    
       _context = context;
    
    
    
       }
    
    
    
       
       [HttpGet]
    
    
    
       public async Task<ActionResult<IEnumerable<Product>>> GetProducts => await _context.Products.ToListAsync();
    
    
    
    }


    e-mail: onay[nokta]yalciner[at]hotmail[nokta]com

    15 Mayıs 2020 Cuma 17:24
    Moderatör

Tüm Yanıtlar