public JsonResult Index(int?id)
 {
     try
     {
         if (null != id)
         {
             Album album = repoAlbum.GetAlbum((int)id);
             return(this.Json(new { success = true, data = album }, JsonRequestBehavior.AllowGet));
         }
         var list = repoAlbum.FindAllAlbums().ToList();
         return(this.Json(new { data = list }, JsonRequestBehavior.AllowGet));
     }
     catch
     {
         return(this.Json(new { success = false, data = "" }, JsonRequestBehavior.AllowGet));
     }
 }