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

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

            return(RedirectToAction("Index"));
        }
Example #3
0
 public async Task <ActionResult> DeleteProtocolFormType(OapProtocolFormType model)
 {
     if (model.Id > 0)
     {
         var response = await OapProtocolFormTypeClient.DeleteProtocolFormTypeAsync(model.Id);
     }
     return(RedirectToAction("Index"));
 }
        public WebApiResult <bool> UpdateProtocolFormType([FromBody] OapProtocolFormType list)
        {
            if (list == null)
            {
                throw new System.Exception("Argument is null");
            }

            return(TryCatch <UpdateProtocolFormTypeRequest, bool>(new UpdateProtocolFormTypeRequest(list)));
        }
 public WebApiResult <OapProtocolFormType> AddProtocolFormType([FromBody] OapProtocolFormType list)
 {
     return(TryCatch <AddProtocolFormTypeRequest, OapProtocolFormType>(new AddProtocolFormTypeRequest(list)));
 }
Example #6
0
 public UpdateProtocolFormTypeRequest(OapProtocolFormType protocolFormType)
 {
     ProtocolFormType = protocolFormType;
 }