private static async Task <int> WriteFileAsync(Project project, string file, string inputCamel, TemplateType templateType)
        {
            try
            {
                string template = await TemplateMap.GetTemplateFilePathAsync(project, file, templateType, inputCamel);

                if (!string.IsNullOrEmpty(template))
                {
                    int index = template.IndexOf('$');

                    if (index > -1)
                    {
                        template = template.Remove(index, 1);
                    }

                    await WriteToDiskAsync(file, template);

                    return(index);
                }

                await WriteToDiskAsync(file, string.Empty);

                return(0);
            }
            catch (Exception e)
            {
                return(0);
            }
        }