コード例 #1
0
        //tek ürün getir
        public IHttpActionResult Get(int id)
        {
            Album album = _albumDAL.Get(a => a.ID == id);

            if (album == null)
            {
                return(NotFound());
            }

            AlbumModel model = new AlbumModel();

            model.AlbumID    = album.ID;
            model.Price      = album.Price;
            model.Title      = album.Title;
            model.Discounted = album.Discounted;
            return(Json(model));
        }
コード例 #2
0
 public Album Get(int id)
 {
     return(albumDAL.Get(a => a.ID == id && a.IsActive && a.Continued, a => a.Artist, a => a.Genre));
 }
コード例 #3
0
        public void DeleetById(int entityID)
        {
            Albumler album = _albumDAL.Get(a => a.ID == entityID);

            Delete(album);
        }
コード例 #4
0
 public Album Get(int entityId)
 {
     return(_albumDAL.Get(a => a.ID == entityId));
 }
コード例 #5
0
 public Album Get(int entityID)
 {
     return(albumDAL.Get(a => a.ID == entityID && a.Continued && a.IsActive, a => a.Artist, a => a.Gengre));
 }
コード例 #6
0
 public AlbumInfo Get(int Id)
 {
     return(dal.Get(Id));
 }