Beispiel #1
0
 /// <summary>Insert or Update RolesPrivilege.</summary>
 /// <param name="privilegeList">The List of IntegerColumn Object.</param>
 /// <param name="role">The RolePrivilege Object.</param>
 /// <returns>Boolean Object.</returns>
 public bool RolePrivilegeUpsert(List <IntegerColumn> privilegeList, RolePrivilege role)
 {
     Logging.LogDebugMessage("Method: RolePrivilegeUpsert, MethodType: Post, Layer: SecurityBL, Parameters: privilegeList = " + JsonConvert.SerializeObject(privilegeList) + ",role = " + JsonConvert.SerializeObject(role));
     using (SecurityDAL rolePrivilegeUpsert = new SecurityDAL())
     {
         try
         {
             return(rolePrivilegeUpsert.RolePrivilegeUpsert(privilegeList, role));
         }
         catch (SqlException sqlEx)
         {
             Logging.LogErrorMessage("Method: RolePrivilegeUpsert, Layer: SecurityBL, Stack Trace: " + sqlEx.ToString());
             throw;
         }
         catch (Exception ex)
         {
             Logging.LogErrorMessage("Method: RolePrivilegeUpsert, Layer: SecurityBL, Stack Trace: " + ex.ToString());
             throw;
         }
     }
 }