public async Task <ActionResult> EditAppType(AppTypeModel model)
        {
            var validationMessage = await AppManagementValidationLogic.EditAppTypeValidation(model, _dbContext);

            if (!string.IsNullOrEmpty(validationMessage))
            {
                return(StatusCode(400, validationMessage));
            }
            var appType = await _dbContext.AppTypes.FindAsync(model.Id);

            appType.Name  = model.Name;
            appType.Title = model.Title;

            await _dbContext.SaveChangesAsync();

            ((RequestLogModel)HttpContext.Items["RequestLog"]).AppTypeId = appType.Id;
            return(Ok());
        }