public async Task <int> AddCompanyUserAsync(ScCompInfo scCompInfo, ScUsr scUsr, SHUSER_SyUser syUser) { //var rstScUsr = scUsrRespository.Insert(scUsr); //scCompInfo. var rstScCompInfo = scCompInfoRespository.Insert(scCompInfo); var rstSyUser = syUserRespository.Insert(syUser); if (rstScCompInfo == null || rstSyUser != 1) { return(-1); } var rst = await SaveDbContextAsync(); return(rst); //if (rst != 1) // return rst; //return await SaveDareDbContextAsync(); }