I need a help from you guys, I have a form on my system, I need it when I register it, send an email to a user.
When I click save, I enter this post to save the data.
[HttpPost]
public void EventosAdversos(EventosAdversos obj)
{
var hospitalId = int.Parse(Cookies.GetCookie("hid"));
var usuarioId = int.Parse(Cookies.GetCookie("uid"));
obj.HospitalId = hospitalId;
obj.StatPree = 1;
obj.UsuarioId = usuarioId;
if (obj.EaId == 0)
{
var eaId = _eventosAdversosService.NovoEaId(obj.PatientId, hospitalId);
obj.EaId = eaId;
}
_eventosAdversosService.Add(obj);
}
Could anyone help me?