public async Task <RulesetCharacterStatTile> Update(RulesetCharacterStatTile item) { var cstile = await _repo.Get((int)item.CharacterStatTileId); if (cstile == null) { return(cstile); } cstile.ShowTitle = item.ShowTitle; cstile.CharacterStatId = item.CharacterStatId; //cstile.Color = item.Color; //cstile.BgColor = item.BgColor; cstile.bodyBgColor = item.bodyBgColor; cstile.bodyTextColor = item.bodyTextColor; cstile.titleBgColor = item.titleBgColor; cstile.titleTextColor = item.titleTextColor; cstile.Shape = item.Shape; cstile.SortOrder = item.SortOrder; cstile.ImageUrl = item.ImageUrl; cstile.IsManual = item.IsManual; cstile.FontSize = item.FontSize; cstile.FontSizeTitle = item.FontSizeTitle; try { await _repo.Update(cstile); } catch (Exception ex) { throw ex; } return(cstile); }
public async Task <RulesetCharacterStatTile> Create(RulesetCharacterStatTile item) { return(await _repo.Add(item)); }