public JsonResult AddNotesResource(Sys_NotesResource model) { return(Json(new { result = _notesManager.AddNotesResource(model) ? "1" : "0" }, JsonRequestBehavior.AllowGet)); }
public bool AddNotesResource(Sys_NotesResource model) { model.Id = _dataAccess.AddEntity(model); return(model.Id > 0); }