public ActionResult Create(Properties properties)
        {
            if (ModelState.IsValid)
            {
                properties.IsActive = true;
                properties.CreateDate = DateTime.Now;
                properties.CreateUser = User.Identity.Name;

                db.Properties.Add(properties);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(properties);
        }
        public ActionResult Edit(Properties properties)
        {
            if (ModelState.IsValid)
            {
                properties.ModifyDate = DateTime.Now;
                properties.ModifyUser = User.Identity.Name;

                db.Entry(properties).State = EntityState.Modified;
                db.SaveChanges();
                return RedirectToAction("Index");
            }
            return View(properties);
        }