25 lines
558 B
C#
25 lines
558 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Web.Mvc;
|
|
using Heroic.AutoMapper;
|
|
using InventoryTraker.Web.Core;
|
|
|
|
namespace InventoryTraker.Web.Models
|
|
{
|
|
public class InventoryAddForm : IMapTo<Inventory>
|
|
{
|
|
[HiddenInput(DisplayValue = false)]
|
|
public string InventoryTypeId { get; set; }
|
|
|
|
[Required]
|
|
public DateTime ExpirationDate { get; set; }
|
|
|
|
[Required]
|
|
public int Quantity { get; set; }
|
|
|
|
[Required, Display(Name = "Arrival Date")]
|
|
public DateTime AddedDate { get; set; }
|
|
|
|
public string Memo { get; set; }
|
|
}
|
|
} |