mirror of
				https://github.com/D4M13N-D3V/comissions-app-core-api.git
				synced 2025-10-31 01:25:27 +00:00 
			
		
		
		
	added new endpoint to get a artist request
This commit is contained in:
		
							parent
							
								
									fa58ce555c
								
							
						
					
					
						commit
						5221f0a8b2
					
				| @ -41,6 +41,17 @@ public class AdminArtistRequestsController : Controller | |||||||
|         return Ok(result); |         return Ok(result); | ||||||
|     } |     } | ||||||
|      |      | ||||||
|  |     [HttpGet] | ||||||
|  |     [Route("{requestId:int}")] | ||||||
|  |     public async Task<IActionResult> GetArtistRequest(int requestId) | ||||||
|  |     { | ||||||
|  |         var request = await _dbContext.ArtistRequests.FirstOrDefaultAsync(x=>x.Id==requestId); | ||||||
|  |         if(request==null) | ||||||
|  |             return NotFound(); | ||||||
|  |         var result = request.ToModel(); | ||||||
|  |         return Ok(result); | ||||||
|  |     } | ||||||
|  |      | ||||||
|     /// <summary> |     /// <summary> | ||||||
|     /// Gets the amount of requests there are from users to become a seller. |     /// Gets the amount of requests there are from users to become a seller. | ||||||
|     /// </summary> |     /// </summary> | ||||||
|  | |||||||
| @ -1 +1 @@ | |||||||
| 69ac50d95c8c1fb669484852338a4006ee3bdd9ffe4fe2b5d2b8c182c02d4f17 | 6cfb6d6c07caaac1b0771125f7ea3e69ff4063637d28b9675056b98fc03ad52a | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Damien Ostler
						Damien Ostler