daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Dec 15th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3.  
  4. namespace Library.Models
  5. {
  6.     public class Book
  7.     {
  8.         public int Id { get; set; }
  9.  
  10.         [Required]
  11.         public string Title { get; set; }
  12.  
  13.         [Required]
  14.         public string Author { get; set; }
  15.  
  16.         [Range(1 , double.MaxValue)]
  17.         public double Price { get; set; }
  18.     }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top