// GET: api/Retailers
        public ICollection <RetailerNoR> GetRetailers()
        {
            List <RetailerNoR> Lys = new List <RetailerNoR>();

            foreach (Retailer objct in db.Retailers.Include(r => r.Seller))
            {
                RetailerNoR newObject = new RetailerNoR()
                {
                    Branch = objct.Branch,
                    CompanyContactNumber = objct.CompanyContactNumber,
                    CompanyDescription   = objct.CompanyDescription,
                    CompanyEmail         = objct.CompanyEmail,
                    CompaynLogoPath      = objct.CompaynLogoPath,
                    RetailerName         = objct.RetailerName,
                    // Seller = objct.Seller,
                    Signature = objct.Signature,
                    UserID    = objct.UserID,
                };


                Lys.Add(newObject);
            }

            return(Lys);
        }
        public async Task <IHttpActionResult> GetRetailer(string id)
        {
            Retailer objct = await db.Retailers.FindAsync(id);

            if (objct == null)
            {
                return(NotFound());
            }

            RetailerNoR newObject = new RetailerNoR()
            {
                Branch = objct.Branch,
                CompanyContactNumber = objct.CompanyContactNumber,
                CompanyDescription   = objct.CompanyDescription,
                CompanyEmail         = objct.CompanyEmail,
                CompaynLogoPath      = objct.CompaynLogoPath,
                RetailerName         = objct.RetailerName,
                // Seller = objct.Seller,
                Signature = objct.Signature,
                UserID    = objct.UserID,
            };

            return(Ok(newObject));
        }