public bool IsApplied(int storeId, string username) { var userId = _user.GetByName(username).Result.ID; return(_repo.IsApplied(userId, storeId)); }