Exemplo n.º 1
0
        public bool AddRentnfo(int companyId, RentInfos entity)
        {
            try
            {
                bool isSuccess;

                CompanyRepository repo = new CompanyRepository();
                int result             = repo.AddRentInfoToCompany(companyId, entity);

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

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