public async Task <JsonResult> CreateType(Type type)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    var user = await _userManager.GetUserAsync(User);

                    var userRoles = await _userManager.GetRolesAsync(user);

                    await _typeService.AddDefault(userRoles, type);
                }
                catch (DbUpdateConcurrencyException)
                {
                    throw;
                }

                return(Json(null));
            }
            return(Json(null));
        }