/// <summary> /// 获取一条数据 /// </summary> /// <param name="model"></param> /// <returns></returns> public ReturnResult <CommandInfo> GetOne(CommandInfo model) { var rst = new ReturnResult <CommandInfo>(); using (var dal = new CommandInfoDal()) { rst = dal.GetOne(model); } return(rst); }
public ReturnResult <bool> UpdateStatusAndResult(CommandInfo model) { var rst = new ReturnResult <bool>(); using (var dal = new CommandInfoDal()) { rst = dal.UpdateStatusAndResult(model); } return(rst); }
/// <summary> /// 删除一条数据 /// </summary> /// <param name="model"></param> /// <returns></returns> public ReturnResult <bool> Delete(CommandInfo model) { var rst = new ReturnResult <bool>(); using (var dal = new CommandInfoDal()) { rst = dal.Delete(model); } return(rst); }
/// <summary> /// 新增多条数据 /// </summary> /// <param name="model"></param> /// <returns></returns> public ReturnResult <bool> AddList(List <CommandInfo> list) { var rst = new ReturnResult <bool>(); using (var dal = new CommandInfoDal()) { rst = dal.AddList(list); } return(rst); }