//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)); }
public Album Get(int id) { return(albumDAL.Get(a => a.ID == id && a.IsActive && a.Continued, a => a.Artist, a => a.Genre)); }
public void DeleetById(int entityID) { Albumler album = _albumDAL.Get(a => a.ID == entityID); Delete(album); }
public Album Get(int entityId) { return(_albumDAL.Get(a => a.ID == entityId)); }
public Album Get(int entityID) { return(albumDAL.Get(a => a.ID == entityID && a.Continued && a.IsActive, a => a.Artist, a => a.Gengre)); }
public AlbumInfo Get(int Id) { return(dal.Get(Id)); }