QuickbirdUWPDashboard
QuickbirdUWPDashboard copied to clipboard
Location Management Page
For the moment there is no Location Management, we just give each device a bogus location. There needs to be UI area where location can be created. Since locations are not deleted, only marked as deleted, the locations that are "deleted" must be hidden.
Current location fields:
public class Location : BaseEntity
{
[Required]
public string Name { get; set; }
[JsonIgnore]
public virtual Person Person { get; set; }
[Required]
public Guid PersonId { get; set; }
[JsonIgnore]
public virtual List<Device> Devices { get; set; }
[JsonIgnore]
public virtual List<CropCycle> CropCycles { get; set; }
[JsonIgnore]
public virtual List<SensorHistory> SensorHistory { get; set; }
[JsonIgnore]
public virtual List<RelayHistory> RelayHistory { get; set; }
}
Basically we only have to worry about the name. Could add description if deemed nessesary.