public async Task <JsonResult> Edit(Notice notice) { if (!ModelState.IsValid) { return(Json(false, data: ErrorToDictionary())); } var manager = new NoticeManager(User); var result = await manager.SaveNotice(notice); return(Json(result)); }