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

namespace GreenTree.Nachtragsmanagement.Web.Models.Appendix
{
    public class CategoryValueDataModel
    {
        public int? CategoryId { get; set; }
        public decimal? Value { get; set; }
        public string Description { get; set; }
        public string Json { get; set; }
        public Core.Domain.Appendix.CategoryValue ToCategoryValue()
        {
            return new Core.Domain.Appendix.CategoryValue
            {
                CategoryId = CategoryId.Value,
                Value = Value.Value
            };
        }
    }
}