Exemplo n.º 1
0
        public TransactionObject GetPostCountOfStudent(int studentID)
        {
            TransactionObject response = new TransactionObject();

            try
            {
                response.Explanation = postManager.GetAllPostsOfStudent(studentID).Count().ToString();
                response.IsSuccess   = true;
            }
            catch (Exception ex)
            {
                response.IsSuccess   = false;
                response.Explanation = base.GetExceptionMessage(ex);
            }
            return(response);
        }