public bool Update(EngineQueueModel model) { if (model == null) { throw new System.ArgumentNullException(nameof(model)); } return(this.Invoke((c) => { return c.Update(model); })); }
public bool InsertQueue(EngineQueueModel model) { if (model == null) { throw new System.ArgumentNullException(nameof(model)); } string sql = $"insert into LEngineQueue(TNo,EngineCode,RepairStatus) values(@TNo,@EngineCode,@RepairStatus);"; return(this.Invoke((c) => { return c.Execute(sql, new { Tno = model.TNo, EngineCode = model.EngineCode, RepairStatus = 0 }) > 0; })); }