public DosarExtended(Dosar d, bool _selected) { this.Dosar = d; this.AsiguratCasco = (Asigurat)d.GetAsiguratCasco().Result; this.AsiguratRca = (Asigurat)d.GetAsiguratRca().Result; this.AutoCasco = (Auto)d.GetAutoCasco().Result; this.AutoRca = (Auto)d.GetAutoRca().Result; this.Intervenient = (Intervenient)d.GetIntervenient().Result; this.SocietateCasco = (SocietateAsigurare)d.GetSocietateCasco().Result; this.SocietateRca = (SocietateAsigurare)d.GetSocietateRca().Result; this.TipDosar = (Nomenclator)d.GetTipDosar().Result; this.selected = _selected; }