Ejemplo n.º 1
0
        public ActionResult UpdateProtocolQuestionHeader(OapProtocolQuestionHeader model)
        {
            // TODO: Add update logic here
            var response = OapProtocolQuestionHeaderClient.UpdateProtocolQuestionHeaderAsync(model).Result;

            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> CreateProtocolQuestionHeader(OapProtocolQuestionHeader model)
        {
            // TODO: Add insert logic here
            var response = await OapProtocolQuestionHeaderClient.AddProtocolQuestionHeaderAsync(model);

            return(RedirectToAction("Index"));
        }
Ejemplo n.º 3
0
 public async Task <ActionResult> DeleteProtocolQuestionHeader(OapProtocolQuestionHeader model)
 {
     if (model.Id > 0)
     {
         var response = await OapProtocolQuestionHeaderClient.DeleteProtocolQuestionHeaderAsync(model.Id);
     }
     return(RedirectToAction("Index"));
 }
Ejemplo n.º 4
0
        public async Task <ActionResult> ProtocolQuestionHeaders()
        {
            var response = await OapProtocolQuestionHeaderClient.GetAllAsync(GetAllModelsCorp());

            return(PartialView("OapProtocolQuestionHeaderPartial", response.Result.Data));
        }
Ejemplo n.º 5
0
 public OapProtocolQuestionHeadersController() : base()
 {
     OapProtocolQuestionHeaderClient = new OapProtocolQuestionHeaderClient(GetApiBaseUrl(), Client);
     OapChecklistClient         = new OapChecklistClient(GetApiBaseUrl(), Client);
     OapChecklistQuestionClient = new OapChecklistQuestionClient(GetApiBaseUrl(), Client);
 }