public MerchantStaff(IMerchantStaff merchantStaff) { MerchantId = merchantStaff.MerchantId; MerchantStaffEmail = merchantStaff.MerchantStaffEmail; MerchantStaffFirstName = merchantStaff.MerchantStaffFirstName; MerchantStaffLastName = merchantStaff.MerchantStaffLastName; MerchantStaffPassword = merchantStaff.MerchantStaffPassword; LwId = merchantStaff.LwId; }
public MerchantStaff(IMerchantStaff staff) { PartitionKey = staff.MerchantId; RowKey = staff.MerchantStaffEmail; MerchantStaffFirstName = staff.MerchantStaffFirstName; MerchantStaffLastName = staff.MerchantStaffLastName; MerchantStaffPassword = staff.MerchantStaffPassword; LwId = staff.LwId; ETag = "*"; }
public async Task <bool> DeleteMerchantStaff(IMerchantStaff staff) { try { var mStaff = new MerchantStaff(staff); await _tableStorage.DeleteAsync(mStaff); } catch { return(false); } return(true); }
public async Task <bool> SaveMerchantStaff(IMerchantStaff staff) { try { var mStaff = new MerchantStaff(staff); await _tableStorage.InsertOrReplaceAsync(mStaff); } catch { return(false); } return(true); }