Admin import functional

This commit is contained in:
2014-02-02 10:19:02 -05:00
parent 13c5c6cde5
commit 3ab80e283a
41 changed files with 2809 additions and 101 deletions
@@ -0,0 +1,20 @@
using System.ComponentModel.DataAnnotations;
using System.Web;
using System.Web.Mvc;
using MileageTraker.Web.Attributes;
namespace MileageTraker.Web.ViewModels.Log
{
public class ImportUploadViewModel
{
[Required]
[Display(Name = "XLS Excel File")]
public HttpPostedFileBase File { get; set; }
[Required]
[Remote("ExistsByEitherName", "User", ErrorMessage = "User with this name doesn't exist")]
[Display(Name = "Driver Name")]
[InputSize("medium")]
public string UserName { get; set; }
}
}