Mr-Aristo
New member
- Joined
- Oct 26, 2023
- Messages
- 2
- Programming Experience
- Beginner
I am working with the project and it is complicated. So there api controllers and controllers file they created api file and inside Response classes. Why they used them i dont get it.
	
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
this is a exapmle usage.
Controllerd>Api>FactoryResponse
	
		
			
		
		
	
				
			
			
				C#:
			
		
		
		var data = (from factory in _db.Factories
            select new FactoryResponse
            {
             FactoryId = factory.FactoryId.ToString(),
             TagPrefix = factory.TagPrefix,
             CatalogEnable = factory.CatalogEnable,
             DataEnable = factory.DataEnable,
            }).ToList();Controllerd>Api>FactoryResponse
			
				Last edited by a moderator: 
			
		
	
								
								
									
	
		
			
		
		
	
	
	
		
			
		
		
	
								
							
							 
	 
 
		 
 
		 
 
		