public bool AddStaff(int companyId, int staffId) { try { bool isSuccess; CompanyRepository repo = new CompanyRepository(); int result = repo.AddStaffToCompany(companyId, staffId); _ = result == 1 ? isSuccess = true : isSuccess = false; return(isSuccess); } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("BusinessLogic::CompanyBusiness::AddStaff::Error occured.", ex); } }