Beispiel #1
0
        public HttpResponseMessage PutCustomField(FieldViewModel viewModel)
        {
            UpdateCustomFieldRequest request = new UpdateCustomFieldRequest()
            {
                CustomFieldViewModel = viewModel
            };
            UpdateCustomFieldResponse response = customFieldService.UpdateCustomField(request);

            return(Request.BuildResponse(response));
        }
Beispiel #2
0
        public ActionResult <CustomFieldAddViewModel> UpdateCustomField(CustomFieldAddViewModel customFieldAddViewModel)
        {
            CustomFieldAddViewModel customFieldUpdate = new CustomFieldAddViewModel();

            try
            {
                customFieldUpdate = _customFieldService.UpdateCustomField(customFieldAddViewModel);
            }
            catch (Exception es)
            {
                customFieldUpdate._failure = true;
                customFieldUpdate._message = es.Message;
            }
            return(customFieldUpdate);
        }