public async Task <CharacterCharacterStatTile> Update(CharacterCharacterStatTile item)
        {
            var cstile = await _repo.Get((int)item.CharacterStatTileId);

            if (cstile == null)
            {
                return(cstile);
            }

            cstile.ShowTitle                 = item.ShowTitle;
            cstile.DisplayLinkImage          = item.DisplayLinkImage;
            cstile.CharactersCharacterStatId = item.CharactersCharacterStatId;

            //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 <CharacterCharacterStatTile> Create(CharacterCharacterStatTile item)
 {
     return(await _repo.Add(item));
 }