Beispiel #1
0
        public async Task <bool> UpdateUser(FMPCustomFields User)
        {
            var result = await _updatecustomfields.Handle(
                UpdateCustomFieldsCommand
                .WithFilter(CustomFieldsFilter
                            .UserName(User.UserName)
                            )
                .SetExistingColumns(User)
                );

            return(result);
        }
Beispiel #2
0
        public async Task <bool> createUser(FMPCustomFields saveCustomColumnRequestData)
        {
            var Isexist = await _customFieldsExists.Handle(
                CustomFieldsFilter.UserName(saveCustomColumnRequestData.UserName)
                );

            if (Isexist)
            {
                return(false);
            }
            else
            {
                var customFieldsData = FMPCustomFields.From(
                    saveCustomColumnRequestData);
                await _createCustomFields.Handle(
                    CreateCommand <FMPCustomFields> .From(customFieldsData));
            }
            return(true);
        }