30 lines
697 B
C#
30 lines
697 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Web;
|
|
|
|
namespace LeafWeb.Web.ViewModels.LeafInput
|
|
{
|
|
public class CreateViewModel
|
|
{
|
|
[Required]
|
|
[Display(Name = "Your name")]
|
|
public string Name { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "Your email address")]
|
|
public string Email { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "A unique identifier for this data")]
|
|
public string LeafInputId { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "The site's name/Fluxnet ID, if known")]
|
|
public string SiteID { get; set; }
|
|
|
|
[Required]
|
|
[UIHint("HttpPostedFileBase")]
|
|
public HttpPostedFileBase Files { get; set; }
|
|
}
|
|
} |