Category of generalized diagrams over a given category C