Ejemplo n.º 1
0
 public ResponseModel SendTestEmail(TestEmailModel model)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 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
            });
        }