Пример #1
0
 public bool Add(group_model group)
 {
     return(CRUD.ExcuteSql(connection =>
     {
         CacheFactory.GetCache.Remove(CacheKey);
         return connection.ExecuteAsync(group) != null;
     }));
 }
Пример #2
0
 public bool Update(group_model group)
 {
     return(CRUD.ExcuteSql(connection =>
     {
         CacheFactory.GetCache.Remove(CacheKey);
         return connection.Update(group) > 0;
     }));
 }
Пример #3
0
 public Basemessage detail([FromQuery] group_model group) => succeed <detail_model>(Get_detailDb.Get(group.id));
Пример #4
0
 public Basemessage Putedit([FromBody] group_model item) => Get_GroupDb.Update(item) ? succeed() : Error();