...
This commit is contained in:
@@ -37,5 +37,11 @@ namespace Back.Services
|
||||
}).ToList()
|
||||
}).ToListAsync();
|
||||
}
|
||||
public async Task<Promotion> GetByPromotionID(int PromotionID)
|
||||
{
|
||||
return await _repoPromotion.Get(w => w.Status && w.ID == PromotionID)
|
||||
.Include(inc => inc.PromotionDetails).ThenInclude(tinc => tinc.Permission)
|
||||
.FirstOrDefaultAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user