Пример #1
0
        public string DeleteCustomeField(long id)
        {
            var customFieldType = customFieldRep.GetById(new CustomFieldTypeId(id));

            customFieldService.DeleteCustomField(customFieldType);
            return("customField deleted");
        }
Пример #2
0
        public ActionResult <CustomFieldAddViewModel> DeleteCustomField(CustomFieldAddViewModel customFieldAddViewModel)
        {
            CustomFieldAddViewModel customFieldDelete = new CustomFieldAddViewModel();

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