private IEnumerable <CheckoutListingViewModel> GetAllById(int id) { var Item = _ICheckOut.GetAllById(id) .Select(I => new CheckoutListingViewModel { id = I.id, FullName = I.FullName, LibraryAsset = I.LibraryAsset, Since = I.Since, Until = I.Until, Confirm = I.Confirm }); return(Item); }