change two places that may exist bugs,and a controller still in development
This commit is contained in:
		
							parent
							
								
									0476e13241
								
							
						
					
					
						commit
						7b24cc3548
					
				@ -36,7 +36,7 @@ namespace asg_form.Controllers
 | 
				
			|||||||
            {
 | 
					            {
 | 
				
			||||||
                TestDbContext testDb = new TestDbContext();
 | 
					                TestDbContext testDb = new TestDbContext();
 | 
				
			||||||
                string chinaname = user.chinaname;
 | 
					                string chinaname = user.chinaname;
 | 
				
			||||||
                var teamgame = testDb.team_Games.Where(a => a.commentary.IndexOf(chinaname) >= 0).Select(a => new { a.id, a.team1_name, a.team2_name, a.bilibiliuri, a.commentary, a.referee ,a.opentime}).ToList();
 | 
					                var teamgame = testDb.team_Games.Where(a => a.commentary.IndexOf(chinaname) >= 0).Select(a => new { a.id, a.team1_name, a.team2_name, a.bilibiliuri, a.commentary, a.referee ,a.opentime,a.team1_piaoshu,a.team2_piaoshu}).OrderByDescending(a => a.opentime).ToList();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                return JsonConvert.SerializeObject(teamgame);
 | 
					                return JsonConvert.SerializeObject(teamgame);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										7
									
								
								asg_form/Controllers/InviteReferee.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								asg_form/Controllers/InviteReferee.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					namespace asg_form.Controllers
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    public class InviteReferee
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -235,7 +235,7 @@ namespace asg_form.Controllers
 | 
				
			|||||||
            {
 | 
					            {
 | 
				
			||||||
using(TestDbContext ctx =new TestDbContext())
 | 
					using(TestDbContext ctx =new TestDbContext())
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    object data = userManager.Users.Select(a => new {a.UserName,a.chinaname,a.Email,a.officium}).Where(a => a.officium != null).GroupBy(a => a.officium).ToList();
 | 
					                    object data = userManager.Users.Select(a => new {a.Id,a.UserName,a.chinaname,a.Email,a.officium}).Where(a => a.officium != null).GroupBy(a => a.officium).ToList();
 | 
				
			||||||
                    return data;
 | 
					                    return data;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user