よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
public ActionResult DeleteTemplateField(int?fieldid) { if (fieldid.HasValue) { using (var formManager = new FormManager(GetLoginUser())) { formManager.DeleteTemplateField(fieldid.Value); return(Json(new { success = true, message = "Field was deleted." })); } } return(Json(new { success = false, message = "Unable to delete field." })); }