コード例 #1
0
 public ResponseModel SendTestEmail(TestEmailModel model)
 {
     throw new NotImplementedException();
 }
コード例 #2
0
        public JsonResult SendTestEmail(TestEmailModel model)
        {
            if (ModelState.IsValid)
            {
                return Json(_emailAccountServices.SendTestEmail(model));
            }

            return Json(new ResponseModel
            {
                Success = false,
                Message = GetFirstValidationResults(ModelState).Message
            });
        }