Beispiel #1
0
        public ActionResult <FieldsCategoryAddViewModel> AddFieldsCategory(FieldsCategoryAddViewModel fieldsCategoryAddViewModel)
        {
            FieldsCategoryAddViewModel fieldsCategoryAdd = new FieldsCategoryAddViewModel();

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