public async Task <IActionResult> Create([DataSourceRequest] DataSourceRequest request)
        {
            var model = new AuthenticationType();

            if (ModelState.IsValid)
            {
                await this.TryUpdateModelAsync <AuthenticationTypeViewModel, AuthenticationType>(model);

                db.AuthenticationTypes.Add(model);

                await db.SaveChangesAsync();
            }

            return(Json(await new[] { model.ToViewModel <AuthenticationType, AuthenticationTypeViewModel>() }.ToDataSourceResultAsync(request, ModelState)));
        }