using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Heroic.AutoMapper;
using InventoryTraker.Web.Core;

namespace InventoryTraker.Web.Models
{
	public class InventoryTypeViewModel : IMapFrom<InventoryType>, IMapTo<InventoryType>
	{
		[HiddenInput]
		public int Id { get; set; }

		[Required]
		public string Identifier { get; set; }

		[Required]
		public string Name { get; set; }

		[Required]
		public int UnitsPerCase { get; set; }

		[Required]
		public string ContainerType { get; set; }

		[Required]
		public double WeightPerCase { get; set; }

		[Required]
		public decimal PricePerCase { get; set; }
	}
}