public ActionResult Create(buildingdeficiencyrepairClass Obj_buildingdeficiencyrepair, string command)
        {
            using (buildingdeficiencyrepairCtl db = new buildingdeficiencyrepairCtl()){
                if (ModelState.IsValid)
                {
                    db.insert(Obj_buildingdeficiencyrepair);
                    if (command.ToLower().Trim() == "save")
                    {
                        string sesionval = Convert.ToString(Session["CreatePreviousURL"]);
                        if (!string.IsNullOrEmpty(sesionval))
                        {
                            Session.Remove("CreatePreviousURL");
                            return(Redirect(sesionval));
                        }
                        else
                        {
                            return(RedirectToAction("Index"));
                        }
                    }
                    else
                    {
                        ModelState.Clear();
                        return(View());
                    }
                }

                return(View(Obj_buildingdeficiencyrepair));
            }
        }