Starting to add log user

This commit is contained in:
2013-01-04 19:47:48 -05:00
parent 5ae38a80ee
commit 09a21d2b2d
8 changed files with 73 additions and 6 deletions
+4 -1
View File
@@ -4,7 +4,6 @@ using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using MileageTraker.Web.Attributes;
using MileageTraker.Web.DAL;
using MileageTraker.Web.Utility;
namespace MileageTraker.Web.Models
{
@@ -45,6 +44,10 @@ namespace MileageTraker.Web.Models
[InputSize("medium")]
public string EmployeeName { get; set; }
[Display(Name = "Employee / Driver")]
[HiddenInput(DisplayValue = false)]
public virtual User User { get; set; }
[Range(0, 50)]
[DisplayFormat(DataFormatString = "{0:0.000}", ApplyFormatInEditMode = true)]
[Units("Gallons")]
+3 -3
View File
@@ -7,12 +7,12 @@ namespace MileageTraker.Web.Models
public class Role
{
[Key]
public virtual Guid RoleId { get; set; }
public Guid RoleId { get; set; }
[Required]
public virtual string RoleName { get; set; }
public string RoleName { get; set; }
public virtual string Description { get; set; }
public string Description { get; set; }
public virtual ICollection<User> Users { get; set; }
}