Пример #1
0
        public async Task <bool> DeleteMerchantStaff(IMerchantStaff staff)
        {
            try
            {
                var mStaff = new MerchantStaff(staff);
                await _tableStorage.DeleteAsync(mStaff);
            }
            catch
            {
                return(false);
            }

            return(true);
        }
Пример #2
0
        public async Task <bool> SaveMerchantStaff(IMerchantStaff staff)
        {
            try
            {
                var mStaff = new MerchantStaff(staff);
                await _tableStorage.InsertOrReplaceAsync(mStaff);
            }
            catch
            {
                return(false);
            }

            return(true);
        }