Пример #1
0
 public static string AccessType(int userId, string screenName, int companyId, int seasonId)
 {
     string functionReturnValue = null;
     var oSecurity = new CSBC.Components.Security.ClsUsers();
     try
     {
         oSecurity.GetAccess(userId, screenName, companyId, seasonId);
     }
     catch (Exception ex)
     {
         var errorMsg = ex.Message;
     }
     finally
     {
         functionReturnValue = oSecurity.AccessType;
         oSecurity = null;
     }
     return functionReturnValue;
 }
Пример #2
0
 private string AccessType()
 {
     string functionReturnValue = null;
     var oSecurity = new CSBC.Components.Security.ClsUsers();
     try
     {
         oSecurity.GetAccess((int)Session["UserID"], "Seasons", (int)Session["CompanyID"], (int)Session["SeasonID"]);
     }
     catch (Exception ex)
     {
         lblError.Text = "AccessType::" + ex.Message;
     }
     finally
     {
         functionReturnValue = oSecurity.AccessType;
         oSecurity = null;
     }
     return functionReturnValue;
 }