Account.BLL.YearlyBLL.GetYearlys C# (CSharp) Method

GetYearlys() public method

public GetYearlys ( string start, string end, int pageIndex, int pageSize ) : dynamic
start string
end string
pageIndex int
pageSize int
return dynamic
        public dynamic GetYearlys(string start, string end, int pageIndex, int pageSize)
        {
            int count = 0;
            pageIndex = pageIndex == 0 ? 1 : pageIndex;
            var monthlys = _dal.GetYearlys(start, end, pageIndex, pageSize, ref count);

            if (pageSize * (pageIndex - 1) >= count)
            {
                pageIndex = (int)Math.Ceiling(((double)count) / pageSize);
                monthlys = _dal.GetYearlys(start, end, pageIndex, pageSize, ref count);
            }

            return new
            {
                pageIndex = pageIndex,
                count,
                data = monthlys
            };
        }

Same methods

YearlyBLL::GetYearlys ( string start, string end ) : IEnumerable
YearlyBLL