public new Result <Order> GetById(int id)
        {
            var R = base.GetById(id);

            if (R.status)
            {
                var templ = OTempRepository.GetById(R.value.OrderTemplateId);

                List <OrdersInformation> info;
                using (CarCosmeticSalonEntities2 db = new CarCosmeticSalonEntities2())
                {
                    info = db.OrdersInformations.Where(i => i.OrderId == R.value.OrderId).ToList();
                }
                R.value.OrdersInformations = info;
                if (templ.status)
                {
                    R.value.OrdersTemplate = templ.value;
                }
            }
            return(R);
        }
        public Result <OrdersTemplate> GetById(int id)
        {
            var r = _ordersTRepository.GetById(id);

            if (r.status)
            {
                var im = _orderTImageRepository.GetImagesFromOrderTemplateId(id);
                if (im.status)
                {
                    r.value.OrdersTemplateImages = im.value;
                }
            }
            return(r);
        }