Exemple #1
0
        public int CreateSalaryBreakUpTemplate(string TemplateName, IFormFile formFile)
        {
            string FullFilePath = ImportFiletoFolder(formFile);

            string[] ParsedResult = LoadSalarySheetFromPath(FullFilePath);
            TblSalaryBreakupTemplates tblSalaryBreakup = new TblSalaryBreakupTemplates()
            {
                FormalsJson  = ParsedResult[1],
                IsAcitve     = true,
                TemplateName = TemplateName,
                TemplateJson = ParsedResult[0]
            };

            return(MastersDAL.CreateSalaryBreakUpTemplate(tblSalaryBreakup));
        }