Created
February 20, 2019 16:05
-
-
Save evan-boissonnot/537bb2dae6872067b4ed0fc97729a3c0 to your computer and use it in GitHub Desktop.
Remote attribute in model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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