Exemplo n.º 1
0
 /// <summary>
 /// 查询单条记录
 /// </summary>
 public Data.Model.WorkFlowButtons Get(Guid id, bool fromCache = false)
 {
     if (fromCache)
     {
         var all    = GetAll(true);
         var button = all.Find(p => p.ID == id);
         return(button == null?dataWorkFlowButtons.Get(id) : button);
     }
     else
     {
         return(dataWorkFlowButtons.Get(id));
     }
 }