public ActionResult UpdateProtocolFormType(OapProtocolFormType model) { // TODO: Add update logic here var response = OapProtocolFormTypeClient.UpdateProtocolFormTypeAsync(model).Result; return(RedirectToAction("Index")); }
public async Task <ActionResult> CreateProtocolFormType(OapProtocolFormType model) { // TODO: Add insert logic here var response = await OapProtocolFormTypeClient.AddProtocolFormTypeAsync(model); return(RedirectToAction("Index")); }
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))); }
public UpdateProtocolFormTypeRequest(OapProtocolFormType protocolFormType) { ProtocolFormType = protocolFormType; }