public async Task <IActionResult> Create(ClientPropertyModel model)
        {
            await _clientPropertyService.InsertClientPropertyAsync(ClientMappers.Mapper.Map <ClientProperty>(model));

            SuccessNotification(await _localizationService.GetResourceAsync("Clients.ClientProperty.Added"));

            return(RedirectToAction(nameof(Index), new { Id = model.ClientId }));
        }
        public async Task <IActionResult> Delete(ClientPropertyModel model)
        {
            var result = await _clientPropertyService.DeleteClientPropertyAsync(ClientMappers.Mapper.Map <ClientProperty>(model));

            if (result)
            {
                SuccessNotification(await _localizationService.GetResourceAsync("Clients.ClientProperty.Deleted"));

                return(RedirectToAction(nameof(Index), new { Id = model.ClientId }));
            }

            return(View(model));
        }