DisturbanceValueDataModel.cs 664 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. namespace GreenTree.Nachtragsmanagement.Web.Models.Deviation
  6. {
  7. public class DisturbanceValueDataModel
  8. {
  9. public int? DisturbanceId { get; set; }
  10. public decimal? Value { get; set; }
  11. public string Description { get; set; }
  12. public string Json { get; set; }
  13. public Core.Domain.Deviation.DisturbanceValue ToDisturbanceValue()
  14. {
  15. return new Core.Domain.Deviation.DisturbanceValue
  16. {
  17. DisturbanceId = DisturbanceId.Value,
  18. Value = Value.Value
  19. };
  20. }
  21. }
  22. }