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