Add object for results details

This commit is contained in:
2020-07-18 21:39:18 -04:00
parent 1e7fa1bb1d
commit 28377cfce8
14 changed files with 156 additions and 33 deletions
+23
View File
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using AutoMapper;
using LeafWeb.Core.Entities;
namespace LeafWeb.WebCms.Models
{
public class LeafInputDetails_Admin : LeafInputDetails
{
[Display(Name = "Time In Progress", Order = 2)]
public TimeSpan TimeInProgress { get; set; }
[UIHint("LeafInputStatusViewModels")]
[Display(Order = 2)]
public List<LeafInputStatusViewModel> StatusHistory { get; set; }
public LeafInputDetails_Admin(LeafInput leafInput)
{
Mapper.Map(leafInput, this);
}
}
}