Skip to content

Instantly share code, notes, and snippets.

@evan-boissonnot
Created February 20, 2019 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evan-boissonnot/537bb2dae6872067b4ed0fc97729a3c0 to your computer and use it in GitHub Desktop.
Save evan-boissonnot/537bb2dae6872067b4ed0fc97729a3c0 to your computer and use it in GitHub Desktop.
Remote attribute in model
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace TestAspNetMvcNet.Models
{
public class Livre
{
[Remote("ValiderPrix", "Price")]
public decimal Prix { get; set; }
[Remote("Valid", "Laser")]
public int PistoLaser { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment