This commit is contained in:
2016-08-08 14:47:35 -04:00
commit 0b0cb7c73a
156 changed files with 114318 additions and 0 deletions
@@ -0,0 +1,34 @@
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Heroic.AutoMapper;
using InventoryTraker.Web.Core;
namespace InventoryTraker.Web.Models
{
public class EditCustomerForm : IMapTo<Customer>
{
[HiddenInput]
public int Id { get; set; }
[Required, Display(Name = "Full Name", Prompt = "Full Name (ex: John Doe)...")]
public string Name { get; set; }
[Required, DataType(DataType.EmailAddress)]
public string WorkEmail { get; set; }
[DataType(DataType.EmailAddress)]
public string HomeEmail { get; set; }
[Required, DataType(DataType.PhoneNumber)]
public string WorkPhone { get; set; }
[DataType(DataType.PhoneNumber)]
public string HomePhone { get; set; }
[Required, DataType(DataType.MultilineText)]
public string WorkAddress { get; set; }
[DataType(DataType.MultilineText)]
public string HomeAddress { get; set; }
}
}