Example #1
0
        public Response <CompanyBalanceInfo> CompanyBalanceInfo(int UserID)
        {
            Response <CompanyBalanceInfo> res = new Response <CompanyBalanceInfo>();

            try
            {
                using (var reportRepository = new ReportRepository())
                {
                    res.Data = reportRepository.CompanyBalanceInfo(UserID);
                    if (res.Data.Count > 0)
                    {
                        res.isSuccess = true;
                        res.Message   = "Şirket bakiye bilgileri başarıyla getirilmiştir";
                    }
                    else
                    {
                        res.isSuccess = false;
                        res.Message   = "Şirket bakiye bilgilerini getirirken bir sorun ile karşılaşıldı";
                    }
                }
                return(res);
            }
            catch (Exception ex)
            {
                throw new Exception("An error occured in CompanyBalanceInfo() func. in SpiceApp.BusinessLayer.ReportBusiness", ex);
            }
        }