public EmailUtilities GetEmailInformation(InformationTypeEnum informationType, string ReceivingEMailID) { var resultemail = new EmailUtilities(); var sqlParametersList = new List <SqlParameter> { new SqlParameter("@informationType", informationType) { SqlDbType = SqlDbType.VarChar }, new SqlParameter("@receivingEMailID", ReceivingEMailID) { SqlDbType = SqlDbType.VarChar } }; try { resultemail = GetData("usp_GetEmailInformation", sqlParametersList); } catch (Exception ex) { wslog.WriteLog("ERR", ex.Message.ToString()); throw new ArgumentException(resultemail.Description, "Error"); } return(resultemail); }
public InformationAttribute(string message, InformationTypeEnum type, bool messageAfterProperty) { this.Message = message; if (type == InformationTypeEnum.Error) { this.Type = UnityEditor.MessageType.Error; } if (type == InformationTypeEnum.Info) { this.Type = UnityEditor.MessageType.Info; } if (type == InformationTypeEnum.Warning) { this.Type = UnityEditor.MessageType.Warning; } if (type == InformationTypeEnum.None) { this.Type = UnityEditor.MessageType.None; } this.MessageAfterProperty = messageAfterProperty; }
public InformationAttribute(string message, InformationTypeEnum type, bool messageAfterProperty) { }