public EsaSummaryDto GetEsa(Guid id) { Esa esa = this.GetSingleEsa(id); EsaSummaryDto dto = builder.ToDto(esa); return(dto); }
public void Ok() { EsaSummaryDto dto = new EsaSummaryDto(this.Id, this.Altitude, this.Radius, this.CenterLatitude, this.CenterLongitude); this.service.CreateEsa(dto); this.TryClose(); }
public void CreateEsa(EsaSummaryDto dto) { Esa model = this.factory.CreateEsa(dto.Id, dto.Altitude, dto.Radius, dto.CenterLatitude, dto.CenterLongitude); Approach approach = this.GetSingleApproach(model.ApproachId); approach.AddEsa(model); this.CreateApproach(approach); this.CreateEsa(model); }
public void Load(Guid id) { EsaSummaryDto dto = this.esaService.GetEsa(id); this.Id = dto.Id; this.Altitude = dto.Altitude; this.CenterLatitude = dto.CenterLatitude; this.CenterLongitude = dto.CenterLongitude; this.Radius = dto.Radius; }