Exemplo n.º 1
0
 public MerchantStaff(IMerchantStaff merchantStaff)
 {
     MerchantId             = merchantStaff.MerchantId;
     MerchantStaffEmail     = merchantStaff.MerchantStaffEmail;
     MerchantStaffFirstName = merchantStaff.MerchantStaffFirstName;
     MerchantStaffLastName  = merchantStaff.MerchantStaffLastName;
     MerchantStaffPassword  = merchantStaff.MerchantStaffPassword;
     LwId = merchantStaff.LwId;
 }
Exemplo n.º 2
0
 public MerchantStaff(IMerchantStaff staff)
 {
     PartitionKey           = staff.MerchantId;
     RowKey                 = staff.MerchantStaffEmail;
     MerchantStaffFirstName = staff.MerchantStaffFirstName;
     MerchantStaffLastName  = staff.MerchantStaffLastName;
     MerchantStaffPassword  = staff.MerchantStaffPassword;
     LwId = staff.LwId;
     ETag = "*";
 }
Exemplo n.º 3
0
        public async Task <bool> DeleteMerchantStaff(IMerchantStaff staff)
        {
            try
            {
                var mStaff = new MerchantStaff(staff);
                await _tableStorage.DeleteAsync(mStaff);
            }
            catch
            {
                return(false);
            }

            return(true);
        }
Exemplo n.º 4
0
        public async Task <bool> SaveMerchantStaff(IMerchantStaff staff)
        {
            try
            {
                var mStaff = new MerchantStaff(staff);
                await _tableStorage.InsertOrReplaceAsync(mStaff);
            }
            catch
            {
                return(false);
            }

            return(true);
        }