Esempio n. 1
0
        public bool AddManager(int companyId, int managerId)
        {
            try
            {
                bool isSuccess;

                CompanyRepository repo = new CompanyRepository();
                int result             = repo.AddManagerToCompany(companyId, managerId);

                _ = result == 1 ? isSuccess = true : isSuccess = false;

                return(isSuccess);
            }
            catch (Exception ex)
            {
                LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
                throw new Exception("BusinessLogic::CompanyBusiness::AddManager::Error occured.", ex);
            }
        }