//public CharacterImageTile GetById(int? id) //{ // throw new NotImplementedException(); //} public async Task <RulesetCharacterStatClusterTile> Update(RulesetCharacterStatClusterTile item) { var clusterTile = await _repo.Get((int)item.CharacterStatClusterTileId); if (clusterTile == null) { return(clusterTile); } clusterTile.DisplayCharactersCharacterStatID = item.DisplayCharactersCharacterStatID; clusterTile.Title = item.Title; clusterTile.BodyBgColor = item.BodyBgColor; clusterTile.BodyTextColor = item.BodyTextColor; clusterTile.TitleBgColor = item.TitleBgColor; clusterTile.TitleTextColor = item.TitleTextColor; clusterTile.Shape = item.Shape; clusterTile.SortOrder = item.SortOrder; clusterTile.ClusterWithSortOrder = item.ClusterWithSortOrder; clusterTile.IsManual = item.IsManual; clusterTile.FontSize = item.FontSize; clusterTile.FontSizeTitle = item.FontSizeTitle; try { await _repo.Update(clusterTile); } catch (Exception ex) { throw ex; } return(clusterTile); }
public async Task <RulesetCharacterStatClusterTile> Create(RulesetCharacterStatClusterTile item) { return(await _repo.Add(item)); }