using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GreenTree.Nachtragsmanagement.Web.Models.Deviation
{
    public class DisturbanceValueDataModel
    {
        public int? DisturbanceId { get; set; }
        public decimal? Value { get; set; }
        public string Description { get; set; }
        public string Json { get; set; }
        public Core.Domain.Deviation.DisturbanceValue ToDisturbanceValue()
        {
            return new Core.Domain.Deviation.DisturbanceValue
            {
                DisturbanceId = DisturbanceId.Value,
                Value = Value.Value
            };
        }
    }
}