public ActionResult edit(Note m) { try { Provider db = new Provider(); db.updateNote(m); string content = "<td>" + m.Name + "</td><td>" + m.Content + "</td><td>" + m.SubmitTime.ToString("yyyy-MM-dd") + "</td><td style='font-size:20px;'><a href='javascript:void(0)' class='btn_edit' onclick='showEditNote(" + m.Id + ")'> </a></td><td style='font-size:20px;'><a href='javascript:void(0)' class='btn_delete' onclick='showDeleteNote(" + m.Id + ")'> </a></td>"; return Content(content); } catch (Exception e) { return Content("fail" + e.Message); } }