// GET: SellersAccount/Edit/5

        public ActionResult Edit(int id, Property model)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    APIMethods.APIPut <Property>(model, id.ToString(), "Properties");
                    return(RedirectToAction("Index"));
                }
                catch (Exception E)
                {
                    throw new Exception(E.ToString());
                }
            }
            else
            {
                return(View(APIMethods.APIGet <Property>(id.ToString(), "Properties")));
            }
        }