Exemple #1
0
        public Dto <Email> GetInboxEmails(string inbox, int page = 0, int limit = 10, int skip = 0, string startKey = null, string endKey = null, string startDocId = null, string endDocId = null, string sort = null)
        {
            if (String.IsNullOrEmpty(inbox))
            {
                throw new ArgumentNullException("inbox");
            }

            try
            {
                var dto = _emailRepository.GetInboxEmails(inbox, page, limit, skip, startKey, endKey, startDocId, endDocId, sort);
                dto.TotalRows = _emailRepository.CountInboxEmails(inbox);
                return(dto);
            }
            catch (Exception ex)
            {
                throw HandleException(new object[] { inbox, page, limit, skip }, ex);
            }
        }