예제 #1
0
        public OperationResult RemoveForm(int formId)
        {
            var supplier = FormConfig.FindById(formId);

            if (supplier == null)
            {
                return(new OperationResult(StatusCode.NotFound));
            }

            FormConfig.Delete(supplier);
            return(UnitOfWork.Commit() > 0
                ? new OperationResult(StatusCode.Okey)
                : new OperationResult(StatusCode.Failed));
        }