Open jthompsonnait opened 2 years ago
This comment outlines the actions that can happen on the forms. Actions are in response to the user interacting with the form, pressing buttons or controls.
PRG Post Redirect Get
- Using routing parameters {searchtype?}/{searchvalue?}/{playlistname?}
- PRG clicking the Clear empties bound properties and routing parameters (page only)
- PRG clicking the Fetch will retrieve the existing playlist for the specified playlist name {playlistname?}
- PRG Clicking the Fetch Artist or Fetch Album track will retrieve the tracks for the indicated search and display in a table {searchtype?}/{searchvalue?}
Managing the playlist.
The data models are the C# classes that will be coded in the folder (ViewModels) that holds the data classes in our solution. These classes represent the query class models and the command class models (CQRS).
Artist and Album Track Fetch
public class TrackSelection
{
public int TrackID {get; set;}
public string SongName {get; set;}
public string AlbumTitle {get; set;}
public string ArtistName {get; set;}
public int Milliseconds {get; set;}
public decimal Price {get; set'}
}
public class PlayListTrackInfo
{
public int PlayListID {get; set;}
public int TrackID {get; set;}
public int TrackNumber {get; set;}
public string SongName {get; set;}
public int Milliseconds {get; set;}
}
No model class, individual parameters
Username and PlaylistName and TrackID
No model class, individual parameters
PlaylistID and List
(TrackIDs)
public class PlaylistTrackMove
{
public int PlayListTrackID {get; set;}
public int TrackNumber {get; set;}
}
This comment will describe the various methods that will be used for Command (CQRS) that alter the database. Queries are read-only and require on average no complex processing. However, commands require business rules validations and manipulations of one or many tables and/records. Therefore, the processing of commands should be outlined.
Include the method signature and a bullet list of processes
check track exists (trackid)
check if playlist exist (username, playlistName)
[NO]
create a new playlist record
set track number to 1
add track to playlist tracks (append)
check for any errors
This task list will be completed once the implementation plan has been outlined. This area is where one creates the task list that is associated with the milestone.