Save image metadata to database
This commit is contained in:
		
							parent
							
								
									fbcebd47d9
								
							
						
					
					
						commit
						ce5f7a5d8c
					
				|  | @ -473,6 +473,7 @@ namespace FIT5032_Assignment.Controllers { | |||
|           file = fileName, | ||||
|           status = 0, | ||||
|         }; | ||||
|         db.Images.Add(dbImage); | ||||
|         // Change appointment status to 2 | ||||
|         appointment.status = 2; | ||||
|         db.Entry(appointment).State = EntityState.Modified; | ||||
|  |  | |||
|  | @ -52,6 +52,7 @@ namespace FIT5032_Assignment.Controllers { | |||
|     public DbSet<Patients> Patients { get; set; } | ||||
|     public DbSet<Doctors> Doctors { get; set; } | ||||
|     public DbSet<Appointments> Appointments { get; set; } | ||||
|     public DbSet<Images> Images { get; set; } | ||||
|   } | ||||
|   public class HomeController : Controller { | ||||
|     public static string GetMd5Hash(string input) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user