You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
944 B
C#

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using AutoMapper;
using DSWeb.Common.DB;
namespace DSWeb.Common.Helper
{
public static class UserActionHelper {
public static bool (string userid) {
return UserHaveAction(userid, "14933FC8-FFB9-45AD-B03F-6E668CE6116C");
}
public static bool UserHaveAction(string userid, string actionName) {
EdiDataContext edc = new EdiDataContext();
var useractionList= edc.user_action.Where(x => x.USERID == userid && x.ACTIONID == "14933FC8-FFB9-45AD-B03F-6E668CE6116C").ToList();
if (useractionList.Count > 0)
{
return true;
}
else
{
return false;
}
return false;
}
}
}