/MvcApplicationAPI/Models/Product.cs

https://github.com/henrikjakobsen/WebAPI · C# · 17 lines · 16 code · 1 blank · 0 comment · 0 complexity · 1aeb1847481330696f64959598aafdb5 MD5 · raw file

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Web;
  6. namespace MvcApplicationAPI.Models
  7. {
  8. public class Product
  9. {
  10. [Key]
  11. public int Id { get; set; }
  12. public string Name { get; set; }
  13. public string Category { get; set; }
  14. public decimal Price { get; set; }
  15. }
  16. }