public JsonResult SaveUserThana(SecUserThanaSearch search_obj) { bool is_success = false; string msg = @""; try { db.SEC_USER_THANA_STORE(this.sess_USER_NO, this.sess_LOGON_NO, search_obj.THANA_NO, search_obj.USER_NO, search_obj.IS_ACTIVE); is_success = true; msg = "saved successfully"; } catch (Exception ex) { msg = "failed to save"; } var ressult = new { @is_success = is_success, @msg = msg }; return(Json(ressult, JsonRequestBehavior.AllowGet)); }