public GoodDto[] Execute(GetGoods query) { return(_repository.GetAll().Select(x => new GoodDto { ParkerId = x.ParkerId, Name = x.Name, Collection = x.Collection, AbleForMan = x.AbleForMan, AbleForWoman = x.AbleForWoman, GoldDetails = x.GoldDetails, GoldPen = x.GoldPen, WritingNodeType = x.WritingNodeType, Price = x.Price, AbleToEngraving = x.AbleToEngraving, Description = x.Description, InSpb = x.InSpb, InMsk = x.InMsk, InUfa = x.InUfa, InEkt = x.InEkt, SelfPrice = x.SelfPrice }).ToArray()); }