Ejemplo n.º 1
0
        public ActionResult Delete(int value)
        {
            Model.Content.BDetails bDetails = Details.GetModelByValue("SELECT top 1 * FROM BDetails where isdel=0 and id=" + value, null);
            bDetails.IsDel = 1;
            bDetails.Time  = DateTime.Now;
            bool bol = Details.Update(bDetails);

            return(Json(new { Code = bol, Message = "" }, JsonRequestBehavior.DenyGet));
        }
Ejemplo n.º 2
0
        public ActionResult EditSave(string Name, string Address, decimal AveragePrice, string Business, string School, string Hospital,
                                     string Enjoy, string DeadLine, decimal Areas, decimal Green, int Years, string Property, string Develops, string Certificate, string PID)
        {
            Model.Content.Builds builds = BD.GetModelByValue("select top 1* from Builds  where isdel=0 and  pid='" + PID + "'", null);
            builds.Name         = Name;
            builds.Address      = Address;
            builds.AveragePrice = AveragePrice;
            builds.Business     = Business;
            builds.School       = School;
            builds.Hospital     = Hospital;
            builds.Enjoy        = Enjoy;
            builds.DeadLine     = DeadLine;
            builds.Areas        = Areas;
            builds.Green        = Green;
            builds.Years        = Years;
            builds.Property     = Property;
            builds.Developers   = Develops;
            builds.Certificate  = Certificate;
            bool ret = BD.Update(builds);

            return(Json(new { Code = ret }));
        }