Starting to add log user
This commit is contained in:
+4
-1
@@ -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
@@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user