Init commit
This commit is contained in:
		
							parent
							
								
									9ab798fd0f
								
							
						
					
					
						commit
						1f50fedb80
					
				
					 87 changed files with 75678 additions and 0 deletions
				
			
		
							
								
								
									
										10
									
								
								Models/DashboardViewModel.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								Models/DashboardViewModel.cs
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,10 @@ | |||
| namespace turf_tasker.Models; | ||||
| 
 | ||||
| public class DashboardViewModel | ||||
| { | ||||
|     public DateTime? LastMowDate { get; set; } | ||||
|     public DateTime? LastWaterDate { get; set; } | ||||
|     public DateTime? LastFertilizeDate { get; set; } | ||||
|     public DateTime? LastAerationDate { get; set; } | ||||
|     public MowingPattern? NextMowingPattern { get; set; } | ||||
| } | ||||
							
								
								
									
										8
									
								
								Models/ErrorViewModel.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Models/ErrorViewModel.cs
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| namespace turf_tasker.Models; | ||||
| 
 | ||||
| public class ErrorViewModel | ||||
| { | ||||
|     public string? RequestId { get; set; } | ||||
| 
 | ||||
|     public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); | ||||
| } | ||||
							
								
								
									
										46
									
								
								Models/LawnCareEvent.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								Models/LawnCareEvent.cs
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,46 @@ | |||
| using System.ComponentModel.DataAnnotations; | ||||
| 
 | ||||
| namespace turf_tasker.Models; | ||||
| 
 | ||||
| public enum LawnCareEventType | ||||
| { | ||||
|     Mowing, | ||||
|     Watering, | ||||
|     Fertilizing, | ||||
|     Aeration, | ||||
|     WeedControl, | ||||
|     Other | ||||
| } | ||||
| 
 | ||||
| public enum MowingPattern | ||||
| { | ||||
|     Vertical, | ||||
|     Horizontal, | ||||
|     Diagonal, | ||||
|     [Display(Name = "Opposite Diagonal")] | ||||
|     OppositeDiagonal | ||||
| } | ||||
| 
 | ||||
| public class LawnCareEvent | ||||
| { | ||||
|     [Key] | ||||
|     public int Id { get; set; } | ||||
| 
 | ||||
|     [Required] | ||||
|     [Display(Name = "Activity Type")] | ||||
|     public LawnCareEventType EventType { get; set; } | ||||
| 
 | ||||
|     // --- THIS IS THE LINE TO CHECK --- | ||||
|     // Make sure this property exists and is spelled correctly. | ||||
|     [Required] | ||||
|     [DataType(DataType.Date)] | ||||
|     [Display(Name = "Date")] | ||||
|     public DateTime EventDate { get; set; } | ||||
|     // --------------------------------- | ||||
| 
 | ||||
|     [Display(Name = "Mowing Pattern")] | ||||
|     public MowingPattern? MowingPattern { get; set; } | ||||
| 
 | ||||
|     [StringLength(500)] | ||||
|     public string? Notes { get; set; } | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Blake Ridgway
						Blake Ridgway