コード例 #1
0
 public object DeleteSMTP([FromBody] SMTPUpdatePram PM)
 {
     try
     {
         SMTPBusiness b      = new SMTPBusiness();
         var          Result = b.DeleteSMTP(PM);
         return(Result);
     }
     catch (Exception e)
     {
         return(new Error()
         {
             IsError = true, Message = e.Message
         });
     }
 }
コード例 #2
0
 public object AddSMTP([FromBody] SMTPParam obj)
 {
     try
     {
         SMTPBusiness save   = new SMTPBusiness();
         var          result = save.SaveSMTP(obj);
         return(result);
     }
     catch (Exception e)
     {
         return(new Error()
         {
             IsError = true, Message = e.Message
         });
     }
 }
コード例 #3
0
        public object UpdateSMTP(SMTPUpdatePram b)
        {
            try
            {
                SMTPBusiness smtp   = new SMTPBusiness();
                var          Result = smtp.SMTPUpdate(b);

                return(Result);
            }
            catch (Exception e)
            {
                return(new Error()
                {
                    IsError = true, Message = e.Message
                });
            }
        }
コード例 #4
0
        public object GetSMTPInfo(UserCredential uc)
        {
            try
            {
                SMTPBusiness smtp   = new SMTPBusiness();
                var          Result = smtp.GetSMTP(uc);

                return(Result);
            }
            catch (Exception e)
            {
                return(new Error()
                {
                    IsError = true, Message = e.Message
                });
            }
        }