public ActionResult EditTaskConfig(TaskConfig taskConfig) { int rs = PetFeedEventsBll.UpdateTaskConfig(taskConfig); //记录日志 Log(string.Format("编辑[TaskConfig]数据:{0}", taskConfig.ToString())); return(EditResult(rs, "操作失败", "TaskConfigList")); }
/// <summary> /// 删除 /// </summary> /// <param name="taskConfig">要删除的 实际使用TaskConfigId删除</param> /// <returns></returns> public ActionResult DelTaskConfig(TaskConfig taskConfig) { int rs = PetFeedEventsBll.DeleteTaskConfig(taskConfig); //记录日志 Log(string.Format("删除[TaskConfig]数据:{0}", taskConfig.ToString())); return(DelResult(rs, "TaskConfigList")); }
public ActionResult AddTaskConfig(TaskConfig taskConfig) { int rs = PetFeedEventsBll.InsertTaskConfig(taskConfig); //记录日志 Log(string.Format("新增TaskConfig 数据:{0}", taskConfig.ToString())); return(EditResult(rs, "操作失败", "TaskConfigList")); }