Exemple #1
0
        public ActionResult <FieldsCategoryAddViewModel> DeleteFieldsCategory(FieldsCategoryAddViewModel fieldsCategoryAddViewModel)
        {
            FieldsCategoryAddViewModel fieldsCategorylDelete = new FieldsCategoryAddViewModel();

            try
            {
                fieldsCategorylDelete = _customFieldService.DeleteFieldsCategory(fieldsCategoryAddViewModel);
            }
            catch (Exception es)
            {
                fieldsCategorylDelete._failure = true;
                fieldsCategorylDelete._message = es.Message;
            }
            return(fieldsCategorylDelete);
        }