Ejemplo n.º 1
0
        public IActionResult Profile(ProtocolView pProtocol)
        {
            Protocol _protocol = UserExtension.ProtocolViewToProtocol(pProtocol);
            string   _result   = lIProtocolInterface.UpdateProtocol(_protocol);

            return(RedirectToAction("Index", new { id = pProtocol.PatientId.Trim(), Username = HttpContext.Session.GetString("PatientName").ToString() }));
        }
Ejemplo n.º 2
0
        public IActionResult Add(ProtocolView pProtocol)
        {
            Protocol _protocol = UserExtension.ProtocolViewToProtocol(pProtocol);

            pProtocol.ProtocolId = Guid.NewGuid().ToString();
            pProtocol.Time       = DateTime.Now;
            string _User = lIProtocolInterface.InsertProtocol(_protocol);

            return(RedirectToAction("Index", new { id = pProtocol.PatientId.Trim(), Username = HttpContext.Session.GetString("PatientName").ToString() }));
        }