public static Document GetDocumentDetails(this enmDocumentMaster e) { var type = e.GetType(); var name = Enum.GetName(type, e); var returnData = (Document)type.GetField(name).GetCustomAttributes(typeof(Document), false).FirstOrDefault(); returnData.Id = (int)e; return(returnData); }
public AccessRightRequirement(enmDocumentMaster accessRight) { this.accessRight = accessRight; }
public bool HaveClaim(enmDocumentMaster claimId) { return(_context.tblRoleClaim.Where(p => RoleId.Contains(p.Role.Value) && !p.IsDeleted && p.ClaimId == claimId).Count() > 0 ? true : false); }