public JsonResult AddUpdate(Customers_Property objcustomer)
 {
     try
     {
         if (objcustomer.idx > 0)
         {
             objcustomer.lastModifiedByUserIdx = 1;//Session Idx
             objcustomer.lastModificationDate  = DateTime.Now.ToString("yyyy-MM-dd");
             objCustomer = new Customers_BLL(objcustomer);
             bool flag = objCustomer.Update();
             return(Json(new { data = "updated", success = flag, statuscode = 200 }, JsonRequestBehavior.AllowGet));
         }
         else
         {
             objcustomer.createdByUserIdx = 1;//Session Idx
             objCustomer = new Customers_BLL(objcustomer);
             bool flag = objCustomer.Insert();
             return(Json(new { data = "Inserted", success = flag, statuscode = 200 }, JsonRequestBehavior.AllowGet));
         }
     }
     catch (Exception ex)
     {
         return(Json(new { data = ex.Message, success = false, statuscode = 400, count = 0 }, JsonRequestBehavior.AllowGet));
     }
 }