public IActionResult Index()
        {
            var model = new EditChatStickerTypeBaseModel
            {
                EditChatStickerTypeInputModel = new EditChatStickerTypeInputModel(),
                EditChatStickerTypeViewModels = this.editChatStickerTypeService.GetAllChatStickerTypes(),
            };

            return(this.View(model));
        }
        public async Task <IActionResult> EditStickerType(EditChatStickerTypeBaseModel model)
        {
            if (this.ModelState.IsValid)
            {
                Tuple <bool, string> result =
                    await this.editChatStickerTypeService.EditStickerType(model.EditChatStickerTypeInputModel);

                if (!result.Item1)
                {
                    this.TempData["Error"] = result.Item2;
                    return(this.RedirectToAction("Index", "EditChatStickerType", model));
                }

                this.TempData["Success"] = result.Item2;
                return(this.RedirectToAction("Index", "EditChatStickerType"));
            }

            this.TempData["Error"] = ErrorMessages.InvalidInputModel;
            return(this.RedirectToAction("Index", "EditChatStickerType", model));
        }