Update: Job Entity -> Enum Support 2

Support the DistributionType Enum in Device Profiles
This commit is contained in:
Gary Sharp
2013-09-09 15:09:28 +10:00
parent 02b91f1ea4
commit 60f7384c97
9 changed files with 53 additions and 51 deletions
@@ -16,15 +16,7 @@ namespace Disco.Web.Areas.Config.Models.DeviceProfile
public int? Address { get; set; }
public string AddressName { get; set; }
public string Description { get; set; }
public int DistributionTypeId { get; set; }
public string DistributionType
{
get
{
return Enum.GetName(typeof(Disco.Models.Repository.DeviceProfile.DistributionTypes), this.DistributionTypeId);
}
}
public Disco.Models.Repository.DeviceProfile.DistributionTypes DistributionType { get; set; }
public int DeviceCount { get; set; }
public int DeviceDecommissionedCount { get; set; }