Beispiel #1
0
        public IActionResult Post(EmailMessage model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            var emailMessage = model;//.ToEntity();

            //save it and respond
            _emailService.Insert(emailMessage);

            VerboseReporter.ReportSuccess("Thêm EmailMessage thành công", "post");
            return(RespondSuccess(emailMessage));
        }