COmpletata prima review Starred Softkey
This commit is contained in:
@@ -76,6 +76,21 @@ namespace Thermo.Active.Database.Controllers
|
||||
.ToList();
|
||||
}
|
||||
|
||||
|
||||
public List<DTOUserSoftKeyConfigModel> GetStarredSoftkeys(int userId)
|
||||
{
|
||||
// Find user softkey stored in the database
|
||||
List<FavoriteUserSoftkeyModel> favoriteKey = FindUserFavoriteSoftkeys(userId);
|
||||
// Get config
|
||||
List<DTOUserSoftKeyConfigModel> userSoftkey = GetUserSoftkeyConfig();
|
||||
|
||||
return userSoftkey
|
||||
.Where(x =>
|
||||
favoriteKey.Any(y => y.SoftkeyId == x.Id
|
||||
))
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public List<DTOUserSoftKeyConfigModel> InsertUserSoftkeyModel(List<uint> softKeyIds, int userId)
|
||||
{
|
||||
List<FavoriteUserSoftkeyModel> softKeys = new List<FavoriteUserSoftkeyModel>();
|
||||
|
||||
Reference in New Issue
Block a user