Skip to content

Instantly share code, notes, and snippets.

@abel-masila
Last active December 21, 2016 10:20
Show Gist options
  • Save abel-masila/6e7c820d04cc360f27659b1e46fdc54e to your computer and use it in GitHub Desktop.
Save abel-masila/6e7c820d04cc360f27659b1e46fdc54e to your computer and use it in GitHub Desktop.
The Model
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace ProductsApp.Models
{
public class Product
{
[Key]
public int Id { get; set; }
public string ProductNAme { get; set; }
public decimal Price { get; set; }
public string Description { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment