示例#1
0
        public ActionResult UpdateProtocolFormType(OapProtocolFormType model)
        {
            // TODO: Add update logic here
            var response = OapProtocolFormTypeClient.UpdateProtocolFormTypeAsync(model).Result;

            return(RedirectToAction("Index"));
        }
示例#2
0
        public async Task <ActionResult> CreateProtocolFormType(OapProtocolFormType model)
        {
            // TODO: Add insert logic here
            var response = await OapProtocolFormTypeClient.AddProtocolFormTypeAsync(model);

            return(RedirectToAction("Index"));
        }
示例#3
0
 public async Task <ActionResult> DeleteProtocolFormType(OapProtocolFormType model)
 {
     if (model.Id > 0)
     {
         var response = await OapProtocolFormTypeClient.DeleteProtocolFormTypeAsync(model.Id);
     }
     return(RedirectToAction("Index"));
 }
        public OapChecklistsController() : base()
        {
            OapChecklistClient = new OapChecklistClient(GetApiBaseUrl(), Client);

            OapHierarchyClient = new OapHierarchyClient(GetApiBaseUrl(), Client);

            OapProtocolFormTypeClient = new OapProtocolFormTypeClient(GetApiBaseUrl(), Client);

            OapFrequencyTypeClient = new OapFrequencyTypeClient(GetApiBaseUrl(), Client);
        }
示例#5
0
        public async Task <ActionResult> Index()
        {
            var response = await OapProtocolFormTypeClient.GetAllAsync(GetAllModelsCorp());

            return(View("OapProtocolFormType", response.Result.Data));
        }
示例#6
0
 public OapProtocolFormTypesController() : base()
 {
     OapProtocolFormTypeClient = new OapProtocolFormTypeClient(GetApiBaseUrl(), Client);
 }
 private ObservableCollection <OapProtocolFormType> GetOapProtocolFormTypes()
 {
     return(OapProtocolFormTypeClient.GetAllAsync(GetAllModelsCorp()).Result?.Result?.Data);
 }