Exemplo n.º 1
0
        public ActionResult AlbumGetAllItems()
        {
            var result = _sqlLiteData.AlbumGetAllItems();

            if (result != null)
            {
                return(Ok(result));
            }
            else
            {
                return(NotFound(result));
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="SqlLiteData">Controller that implements IMusicData api calls for Sqlite Database </param>
 public AlbumController(IMusicData SqlLiteData)
 {
     _sqlLiteData = SqlLiteData;
     Albums       = _sqlLiteData.AlbumGetAllItems();
 }